In my project, there are many library project (more than 10). It takes long time to build. So I want to replace some of these library projects by JAR libraries.
According to this question: How to Convert an Android Library Project to an External JAR?
As CommonsWare’s answer (https://stackoverflow.com/a/7973950/190309)
If your library is purely Java code, with no resources, you can create
a JAR out of the .class files, just as you would with regular Java.
But when using NineOldAndroids library (https://github.com/JakeWharton/NineOldAndroids) from Jake Wharton,
This library is presented as a .jar file which you can include in the libs/ folder of your application.
It means although there are many resources in NineOldAndroids, I can use it as a JAR library instead.
With ADT 17, for every library project, there is a JAR library in lib_project/bin/lib_project.jar which automatically generated each time library project is built.
Can I use this JAR as an alternative for library project?
There are precisely zero resources in NineOldAndroids. You can tell this by looking at the project and seeing that there is no
res/directory.Not at this time. That JAR still depends on the library project itself.