错误:(1, 0) 未找到 ID 为“android”的插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24204436/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error:(1, 0) Plugin with id 'android' not found
提问by RYU
I have just installed Android Studio and after some quirks about the SDK Build Tools minimum having to be 19.1.0 instead of 19.0.3 I have not came about another error
我刚刚安装了 Android Studio,在关于 SDK Build Tools 最低必须是 19.1.0 而不是 19.0.3 的一些怪癖之后,我没有遇到另一个错误
Error:(1, 0) Plugin with id 'android' not found.
I haven't found a solution in google and I am absolutely new so I "have no clue"... the error shows up when I just created a new blank activity (and application).
我还没有在 google 中找到解决方案,我完全是新手,所以我“不知道”......当我刚刚创建一个新的空白活动(和应用程序)时出现错误。
What does the error means and how to fix it? (if it's a problem)
错误意味着什么以及如何修复它?(如果有问题)
Thanks.
谢谢。
回答by Ganesh Katikar
Put below code in build.gradle file of main Application and sync it.
将以下代码放在主应用程序的 build.gradle 文件中并同步它。
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}
allprojects {
repositories {
mavenCentral()
}
}
回答by Sachin
It Works, I just change gradle version to classpath 'com.android.tools.build:gradle:1.0.0'
它有效,我只是将 gradle 版本更改为 classpath 'com.android.tools.build:gradle:1.0.0'