android tutorial - How to add aar dependency in a module in android | Developer android - android app development - android studio - android app developement



In a module (library or application) where you need the aar file you have to add in your build.gradle the repository:

repositories {
    flatDir {
        dirs 'libs'
    }
}
click below button to copy code from our android learning website - android tutorial - team

and add the dependency:

dependencies {
    compile(name:'nameOfYourAARFileWithoutExtension', ext:'aar')
}
click below button to copy code from our android learning website - android tutorial - team

Pay attention to the relative path of the libs folder that you are using in the module.


Related Searches to How to add aar dependency in a module in android