解决错误:Plugin with id 'com.android.application' not found

本文转载地址:https://blog.csdn.net/qq_26819733/article/details/50935632

Error:(1, 0) Plugin with id 'com.android.application' not found.Open File

解决错误:Plugin with id 'com.android.application' not found

这个错误是build.gradle造成的,我们打开文件

解决错误:Plugin with id 'com.android.application' not found

打开报错的项目的build.gradle,看看有没有buildscript{}(应该是没有的,因为就是没有这个东西才报错的

buildscript {
    repositories {
        mavenCentral() // or jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'   //last version Jan 2016
    }
}

把这个粘贴进去,点解决错误:Plugin with id 'com.android.application' not found同步,错误应该消失了,

效果如图:解决错误:Plugin with id 'com.android.application' not found

 

就是这样子了,这项目有点不一样,我是import进去的,在gradle配置里面的,一般情况下是没有红色框框上面的配置的。

问题顺利解决了。

问题归根揭底是

解决错误:Plugin with id 'com.android.application' not found

 

你可以看看报错前和解决后的这个视图有什么变化,哈哈