caipivara
3/28/2016 - 6:39 AM

Android Studio add local .aar reference

Android Studio add local .aar reference

Add local .aar file

  1. basic build.gradle directory using flatDir
repositories {
    mavenCentral()
    flatDir {
        dirs 'libs'
    }
}
  1. app/build.gradle

//way1:
dependencies {
   compile 'com.kevinpelgrims.library:library:1.0.0@aar'
}

//or way2: store the .aar file in libs
dependencies {
    compile(name:'libraryfilename', ext:'aar')
}