Error:(1, 0) plugin: 'com.android.application' not found [duplicate]

自作多情 提交于 2019-12-09 18:40:42

问题


I got this error when I was creating new project. I tried to resolve but I couldn't find any solution.


回答1:


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()
    }
}

Second: Find the gradle-wrapper.properties. Change the last sentence to this:

distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip

Hope this works for you.



来源:https://stackoverflow.com/questions/38761358/error1-0-plugin-com-android-application-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!