JARs from the library project do not appear in application projects

After upgrading SDK Tools to version 22, classes from jars from the library project (placed in its libs directory) are not displayed in the application project (which depends on the library project). It does not work in Eclpise (it doesn’t even compile), nor from the ant command line (the project compiles fine, but NoClassDefFoundError displayed at runtime). I tried to copy and copy the libs folder without success.

+4
source share
2 answers

Finally, I found a solution:

  • in the main folder of the application project, create a symbolic link named libs pointing to the corresponding libs folder in the library project or bind specific JARs (copying can be used instead of binding)
  • in project properties-> Java Build Path-> Order and export check chekbox for Android dependencies and Android private libraries.
+3
source

ADT 22 add the help project / libs <personal> Android , if you are linking to another project, you should check the Java build path β†’ and Export check the exported and clean up the projects.

+1
source

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


All Articles