开发者

Update JAR used by Android app in Eclipse

开发者 https://www.devze.com 2022-12-20 21:33 出处:网络
My app uses an API from an external JAR file. This JAR file has been added into my project and added in the build path. My project builds and runs just fine, but now I need to update the JAR file (som

My app uses an API from an external JAR file. This JAR file has been added into my project and added in the build path. My project builds and runs just fine, but now I need to update the JAR file (some code in those classes has c开发者_如何学Pythonhanged). I created a new JAR and copied it into my project after removing the old one. Do I need to "re-import" the JAR file or is there some way for Eclipse to refresh/re-examine the JAR file Im removed and re-added ?


You should try to right click on the package name in the Package Explorer and select "Refresh" and then force Eclipse to recompile everything by clicking on the "Project" menu and click on the "Clean..." option. This works for me whenever I update JAR files in any of my Eclipse projects.


If you have imported a Jar, that means the file has been copied to your project directory.
If you have copied again the new Jar in your project, a simple refresh (F5) on the project should be enough to reference that new Jar.

No reimport needed: You could use the reimport process to copy the new Jar in your project, but it looks like you have already done it manually.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号