错误:(1, 0) 插件: 'com.android.application' 未找到 [英] Error:(1, 0) plugin: 'com.android.application' not found
本文介绍了错误:(1, 0) 插件: 'com.android.application' 未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在创建新项目时遇到此错误.我试图解决,但我找不到任何解决方案.
I got this error when I was creating new project. I tried to resolve but I couldn't find any solution.
推荐答案
第一:将以下代码添加到 build.gradle 的顶部:
First: Add the following code to the top of your build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
}
}
allprojects {
repositories {
jcenter()
}
}
第二: 找到 gradle-wrapper.properties.最后一句改成这样:
Second: Find the gradle-wrapper.properties. Change the last sentence to this:
distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
希望这对你有用.
这篇关于错误:(1, 0) 插件: 'com.android.application' 未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文