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)
- setting-->Instant Run试浙,取消所有的勾選
- project目錄下,gradle-->wrapper-->gradle-wrapper.properties中,將
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
將版本號改成最新的。 - 刪除project目錄下的build文件夾刪除
- clean項(xiàng)目,重新編譯跑程序