1. android studio aar add dependencies
Here is an example of adding rxandroid aar to illustrate the steps of adding aar to android studio.
Add the following code to build.gradle in the image above
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile ( name : 'rxandroid-1.2.0' , ext : 'aar' )//What you need to modify is the name of the file, which is the part of 'rxandroid-1.2.0' } repositories { flatDir { dirs 'libs' } } Then click Sync. Verify that the addition is correct? Just find the files you added in this directory.