How to manually include external aar package using new Gradle Android Build System

后端 未结 23 1813
故里飘歌
故里飘歌 2020-11-22 03:58

I\'ve been experimenting with the new android build system and I\'ve run into a small issue. I\'ve compiled my own aar package of ActionBarSherlock which I\'ve called \'act

23条回答
  •  [愿得一人]
    2020-11-22 04:11

    I found this workaround in the Android issue tracker: https://code.google.com/p/android/issues/detail?id=55863#c21

    The trick (not a fix) is to isolating your .aar files into a subproject and adding your libs as artifacts:

    configurations.create("default")
    artifacts.add("default", file('somelib.jar'))
    artifacts.add("default", file('someaar.aar'))
    

    More info: Handling-transitive-dependencies-for-local-artifacts-jars-and-aar

提交回复
热议问题