I support the Android app and do not use Eclipse. I do not use Eclipse. I use ant and build.xml and build.properties .
I have a .jar file in the libs / directory. My code compiles only dandy. But when I run it on the emulator, the APK output does not contain .jar, so I get the stack stack:
ERROR/AndroidRuntime(470): java.lang.NoClassDefFoundError: com.google.ads.AdView
my build.properties looks like this:
jar.libs.dir=libs
And the libs / directory contains my .jar file.
What should be in the build.xml file for the external .jar file to be included in the APK?
Edit: Theoretically, this answer should work, but it is not for me. Is it out of date? What gives? How to add external jar libraries to android project from command line
source share