天天看点

Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android

使用Android studio rebuild项目时报错:Error:(1, 1) A problem occurred evaluating project ':app'.

> Failed to apply plugin [id 'com.android.application']

   > Invalid revision: 12.0.2753695 beta 1

这是因为项目的配置由于工具更新或其他原因更改了。

具体配置文件:项目目录下的 build.gradle 文件

文件中有这样一段代码:

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

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}      

你需要将classpath 的版本改回原来的样子我之前版本是2.0.0。之后同步即可

继续阅读