Jar files in libs folder are not used in Android Gradle build

后端 未结 2 800
春和景丽
春和景丽 2020-12-30 21:44

i just started to play with the gradle build system for Android.

However i\'m not able build one of my projects. It depends on a jar in the libs/ folder.

Doi

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 22:35

    Just in case none of the solutions worked for you, you may want to try to provide the path to the *.jar manually:

    compile files('..//.jar')
    

    The '../' part means that Gradle will search for the library starting from the root projects folder (not app module).

提交回复
热议问题