Android Studio 1.1.0 does not get links to aar file build from 1.0.0

I created a module library in android studio 1.0.0. From this I took the .aar file and used it in another project. But after updating my android studio to version 1.1.0, when I import it, I don't get any links from it.

After doing some research, I found that this is for the gradle build version in build.gradle

dependencies {
    classpath 'com.android.tools.build:gradle:1.1.0'
}

If you lower it to 1.0.0, then links from the .aar file (1.0.0) will be found. But I think this is not the best solution. Thus, any help will be noticeable.

thank

+2
source share
1 answer

( Alt+1) > Project (), app aar.
myLibrary.aar app/aar.

MyProject > build.gradle

buildscript {
    repositories {
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'
    }
}

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

MyProject/app > build.gradle

dependencies {
    ...
    compile(name: 'myLibrary', ext: 'aar')
}

!:)

+3

All Articles