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

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

    1. Right click on your project and select "Open Module Settings".

    1. Click the "+" button in the top left corner of window to add a new module.

    1. Select "Import .JAR or .AAR Package" and click the "Next" button.

    1. Find the AAR file using the ellipsis button "..." beside the "File name" field.

    1. Keep the app's module selected and click on the Dependencies pane to add the new module as a dependency.

    1. Use the "+" button of the dependencies screen and select "Module dependency".

    1. Select the module and click "OK".

提交回复
热议问题