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

Error:(1, 0) Plugin with id 'android' not found.

2016-03-29 00:00 429 查看
摘要: Android Studio编译时提示错误:Error:(1, 0) Plugin with id 'android' not found. 的解决办法

Android Studio编译时提示错误:Error:(1, 0) Plugin with id 'android' not found,是因为gradle文件中没有定义android tools的版本造成,在项目的build.gradle文件中添加定义版本的语句:

classpath 'com.android.tools.build:gradle:1.3.0'
这个问题就解决了。注意build.gradle文件是项目下的



最后这个build.gradle文件的完整内容如下:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

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

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