在你Project的build.gradle里添加这段代码 (注意:不是app目录下的build.gradle)
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
详细可参考:
http://stackoverflow.com/questions/18153739/android-studio-plugin-with-id-android-library-not-found
转载自: https://blog.csdn.net/wzhidev/article/details/52017044 感谢博主!