This version of android studio is incompatible with the gradle version used.Try disabling the instant run

第一步:禁用Instant Run,在Settings/Preferneces > Build, Execution, Deployment option > Instant Run 中,取消所有的選中項;

20160714114617664.png

第二步:更新gradle services 的url:在project目錄下的 gradle>wrapper>gradle-wrapper.properties中將
distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip
更新為最新的:
distributionUrl=https://services.gradle.org/distributions/gradle-2.11-all.zip

第三步: 刪除project下的build文件夾里的文件

第四步:clean項目,重新編譯跑程序

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容