第一步:禁用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項目,重新編譯跑程序