Gradle for Android AAR Depending Upon AAR, Both In The Same Remote Repository?

前端 未结 3 1971
独厮守ぢ
独厮守ぢ 2020-12-14 06:40

There are a few questions floating around regarding transitive dependencies with AAR files in Gradle:

  • Android Studio 0.2.3 cannot resolve transitive aar depend
3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-14 07:21

    Starting from Android Studio 0.4.4 using .AAR dependencies is as straightforward as using .JAR dependencies. Just put it into \libs directory and reference it in build.gradle:

    compile files('libs/YOUR_LIBRARY_NAME.aar')
    

提交回复
热议问题