allprojects {
repositories {
jcenter()
flatDir{
//使用本地aar需要加上这一条
dirs 'libs'
}
}
}
dependencies {
compile fileTree(dir: 'libs',include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0'
//add
compile(name:'youraarname',ext:'aar')
}
原文链接:https://www.f2er.com/note/421468.html