问题描述:
我在gitHub上新下载了一个Demo,可是运行时发现有这个错误,在它的 gradle-wrapper.properties 这个文件夹中发现它的gradle版本是3.3的,而我的gradle版本是2.14.1的。所以报出这个错误:
Error running app: 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)
解决办法:
首先我看了下这个错误提示,意思是Gradle插件不兼容,所以运行不成功。我先是手动修改了一下gradle-wrapper.properties 中的版本,把它的3.3修改成为我的2.14.1可是还是有问题,运行不成功。
后来我修改了
AndroidStudio中的Settings--->Build,Execution,Deployment-->Instant Run 把 Enable Instant Run to hot swap code/resoure changes deploy(d