0

Many of the Android App Dev almost shifted to Android Studio which makes Dev life much more easier but few features works fine in one version will not work on another version but in next version it will work fine !

I'm talking about including aar external Dependency

See this comments:

enter image description here

Ref: SO

There are different ways to import an arr file but we need to tryout all methods find the solution for the version you are using !

Community
  • 1
  • 1
LOG_TAG
  • 19,894
  • 12
  • 72
  • 105

1 Answers1

0

I Found easy working solution for Android Studio 1.1.0 (not sure It works on other versions)

Simply add new module--> select AAR/JAR type

enter image description here

enter image description here

select the required .arr file, give the name or folder otherwise it will select same file name to folder name!

enter image description here

In above image shows if you shift from Android mode to project mode you can observe new lib module added which contains arr file!

and finally add compile project(':ndlib') to app gradle

Solutions that not worked:

allprojects {
    repositories {
        jcenter()
        flatDir {
            dirs 'aar'
        }
    }


dependencies {
    compile(name:'myLibrary', ext:'aar')
}
LOG_TAG
  • 19,894
  • 12
  • 72
  • 105