Android: What is the folder name of the jar files (LIB or LIBS)?

后端 未结 3 1451
猫巷女王i
猫巷女王i 2020-12-01 12:38

I am going to create a library project which has several dependencies (jar files). I am confused because I\'ve seen some android projects which has LIB or LIBS folder under

3条回答
  •  醉酒成梦
    2020-12-01 13:26

    If you use the Android command line to create your project, it'll default to libs/. It turns out that the Android Ant tasks are set to look in libs/ by default.

    See $ANDROID_HOME/tools/ant/main_rules.xml:

    
    

    If you just care about Eclipse, you can use whatever you want.

    In newer revisions of ADT (revision 17 onwards), the Ant-based build system and the Eclipse plug-in are aligned so that they behave the same way. This means, by default, only the jars that are present in the libs folder are included in the final apk file. These jars would automatically appear under "Android Dependencies" in your Eclipse project.

    For more details please refer here. http://tools.android.com/recent/dealingwithdependenciesinandroidprojects

提交回复
热议问题