JAR update used by Android application in Eclipse

My application uses the API from an external JAR file. This JAR file was added to my project and added to the build path. My project builds and works very well, but now I need to update the JAR file (some code in these classes has changed). I created a new JAR and copied it to my project after deleting the old one. Do I need to "re-import" the JAR file, or is there a way for Eclipse to update / revise the JAR file? Im deleted and re-added?

+1
source share
2 answers

Try right-clicking on the package name in the Package Explorer and selecting Update, and then get Eclipse to recompile everything by clicking the Project menu and clicking Clear .... This works for me whenever I update JAR files in any of my Eclipse projects.

+1
source

If you imported a Jar, it means that the file was copied to the project directory.
If you again copied the new Jar in your project, a simple update ( F5 ) in the project should be enough to reference this new Jar.

No reimport required: you can use the reimport process to copy the new Jar to your project, but it looks like you already did it manually.

0
source

Source: https://habr.com/ru/post/1302880/


All Articles