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

后端 未结 3 1448
猫巷女王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:20

    Citing: http://tools.android.com/recent/dealingwithdependenciesinandroidprojects

    If you are still referencing jar libraries manually instead of putting them under libs/ be aware of the following:

    • If the project is a Library project, these jar libraries will not be automatically visible to application projects. You should really move these to libs/
    • If the project is an application, this can work but you must make sure to mark the jar files as exported.

提交回复
热议问题