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

后端 未结 23 1805
故里飘歌
故里飘歌 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:17

    Add below line in app level build.gradle

      implementation fileTree(dir: "libs", include: ["*.aar"])
    

    Change Project structure from Android to Project.

    Navigaate to app->libs as below

    Then paste "aar" in libs folder.

    Click on File at top left of android studio and click "Sync Project with Gradle Files" as below.

    That's it.

提交回复
热议问题