How to add .aar dependency in library module?

后端 未结 5 731
北海茫月
北海茫月 2020-12-14 00:54

I am having one .aar file of one library module.
I want to use it as a library or dependency in my other project\'s library module.
How do I do it?

5条回答
  •  时光说笑
    2020-12-14 01:11

    1. File -> New Module -> Import .JAR/.AAR
    2. import the .AAR file.
    3. in library module build.gradle add the dependency dependencies{compile project(':Name-Of-Your-Module-aar')}

    http://tools.android.com/tech-docs/new-build-system/tips#TOC-Handling-transitive-dependencies-for-local-artifacts-jars-and-aar-

提交回复
热议问题