Finally, I found a solution even on Gradle 1.1.0. I found help from here from @AliDK's answer.
create a folder in appby name aar.
make a copy of myLibrary.aarand enter app/aar. then
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
}
}
allprojects {
repositories {
jcenter()
flatDir {
dirs 'aar'
}
}
}
and write below code in MyProject/app > build.gradle
dependencies {
...
compile(name: 'myLibrary', ext: 'aar')
}
And it worked for me after spending 2 days.
@AliDK..
, .