Include AAR dependency in Android Library Project

前端 未结 4 1905
北荒
北荒 2021-02-06 10:16

In my Android Studio Gradle project I use several libraries, whereas one library should use a local AAR file as dependency. I used the popular solution to include the AAR file a

4条回答
  •  北海茫月
    2021-02-06 10:35

    In case the answer by user1033552 doesn't work. In my case, it didn't work.

    Below steps worked for me.

    1. Right click project -> New -> Module -> Import aar package -> select file and import it.
    2. In settings.gradle, Make dependent is after dependency.For example include ':imported-aar', ':your-library', ':app'
    3. Now build.gradle of your-library add compile project(':imported-aar')

提交回复
热议问题