报错详情:This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run
解决步骤:
1.确保没有使用run install功能。进入File->settings->build->install run,把右边打勾的选项都去掉,如图
2.切换到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,然后Sync一下
3.删除buil文件夹
4.点击build->clean一下工程
5.ok,解决
android studio运行程序报错
最新推荐文章于 2024-08-26 16:57:02 发布