Several Android projects use a Android library project. Now I added a JAR (commons-lang.jar) to this library project. I want to export this commons-lang.jar to all projects that use the library project. I can't get it to work without duplicating the jar to all referencing projects.
What I did so far:
It seems that the commans-lang JAR is not exported with the library project. I need to create the libs folder on the referencing project as well, add the same JARs to the build path of the referencing project. After that everything works but the APK does contain that external JAR twice.
What's wrong with my approach? What should I do in addition?
Many thanks in advance.
I believe that what you do is go to Eclipse > preferences > Java > Build Path > User Libraries. Then when you add a jar file to that I believe that all of the projects in the workspace automatically have that jar in the classpath.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With