您的位置:首页 > 移动开发

plugin with id 'com.android.application' not found

2016-09-29 09:07 513 查看
androidstudio 导入一个新项目一般出现这个问题的决解办法:

在build.gradle 添加:



以下代码:

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}

有时候不用jcenter() 而是 mavenCentral()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: