Jay K’s answer was right at the time of writing, but now the SDK has changed, and here is the new way to do it:
Add the following line to ant.properties
:
jar.libs.dir=lib
Tested, works where external.libs.dir does not work.
That changed in December 2010 and then again in October 2011.
More Related Contents:
- How do I reference external jar files in a common directory (not libs) to build android project using ant?
- Adding a library/JAR to an Eclipse Android project
- How to add a jar in External Libraries in Android Studio?
- How to create jar for Android Library Project
- Create aar file in Android Studio
- How to add java.awt.image package in Android
- How to create a signed APK file using Cordova command line interface?
- How to create an Android Library Jar with gradle without publicly revealing source code?
- Jar mismatch! Fix your dependencies
- Can’t build and run an android test project created using “ant create test-project” when tested project has jars in libs directory
- Error executing command ‘ant’ on Mac OS X 10.9 Mavericks when building for Android with PhoneGap/Cordova
- Android Studio- Program type already present: com.google.android.gms.internal.measurement.zzwp
- How to integrate Matlab code library with Android?
- Creating a product SDK: How do I add a native lib (.so) and a jar with the SDK I am creating?
- How can I specify location of debug keystore for Android ant debug builds?
- Android signing with Ant
- How to obfuscate an Android library (.jar file) using Proguard in Eclipse
- Multiple Android Application Package .apk files from single source code
- Create Passcode view in Android
- New Intent() starts new instance with Android: launchMode=”singleTop”
- Android listview using ViewHolder
- Drawable-hdpi, Drawable-mdpi, Drawable-ldpi Android
- Can’t update Android Studio – only download
- How do I change screen orientation in the Android emulator?
- OnLongItemClick in RecyclerView
- Detect wifi IP address on Android?
- How does Firebase Analytics define a “user” (for purposes of Audience)?
- Android facebook applicationId cannot be null
- How to add android.support.v7.widget.GridLayout into intelliJidea?
- Android: parse XML from string problems