Android Studio add aar

1. Copy the aar to the libs in the project

 

2. Add in the root directory of build.gradle in the module

 repositories{

    flatDir {

    dirs 'libs'

   }

}

3. Add in the dependencies tag of the root directory of build.gradle in the module   

 

        compile(name:'SDK-release', ext:'aar')

  where SDK-release is the name of your aar

 

4. After completing the first three steps, you will see the added aar in the External Libraries of the project

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325340630&siteId=291194637