尝试在我的设备(或模拟的设备)上运行应用程序时,我不断收到相同的错误:
Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)
成功完成gradle构建后。
我尝试了一些Gradle设置 - 使用默认的Gradle wrapper,或者使用Gradle wrapper任务配置 - 没有任何变化。
gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-bin.zip
build.gradle
classpath 'com.android.tools.build:gradle:2.2.0-alpha6'
这是来自Github的开源项目。没有其他人对此抱怨。
我正在使用Ubuntu 15.10,因此gradle --version命令可能会提供有用的信息。
------------------------------------------------------------
Gradle 1.5
------------------------------------------------------------
Gradle build time: niedziela, 16 listopad 2014 16:24:40 UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.4 compiled on January 27 2015
Ivy: non official version
JVM: 1.7.0_95 (Oracle Corporation 24.95-b01)
编辑: 哦,我也试过在配置中禁用即时运行(Instant Run)。
编辑2: 我同时在另一个项目上工作时没有问题,但是所有设置都是相同的,所以我真的不知道该怎么办。