更新时间:2022-10-14 23:26:35
我们的Android应用程序需要的JAR 文件住的lib文件夹中 我们的项目
把它放在库/
文件夹,一切都将自动运行。我不知道你的应用程序什么可能要求的lib /
目录中,而不是库/
。
Im using an ant build file that has been generated by android. Our Android application requires a JAR file that lives inside the lib folder of our project, so I need to adjust the classpath that ant is using when it builds stuff.
When I run:
ant -lib lib debug
the project builds just fine, but this should really be inside the build file itself. The build file that android generates references the android_rules.xml so a lot of this stuff is automated. I guess my question, what the best practice here when working with the Android build rules ?
Our Android application requires a JAR file that lives inside the lib folder of our project
Put it in the libs/
folder, and everything will work automatically. I do not know what in your application could possibly require the lib/
directory instead of libs/
.