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
這個錯誤簡直是喪心病狂,折騰大半天, 搞不清楚為什么報這個錯誤,后來發現同事AS更新到2.3,Gradle也更新了,導致Gradle版本和我當前AS版本不匹配
-
解決
其實原理很簡單,要么升級AS,要么將當期Gradle版本降級,或者禁用Instant Run,升級AS比較省事,前提是網速還行或者翻墻,降級Gradle,
兩種方法:
1、升級AS,這個最省事,Help--Check for Updates
2、更改Gradle版本號
Paste_Image.png
更改gradle-wrapper中路徑.png
修改Project下buidle.gradle中
Paste_Image.png