AndroidStudio运行项目出现This version of Android Studio is incompatible with the Gradle Plugin used.

本文介绍了在Android Studio中遇到'Android Studio版本与使用的Gradle插件不兼容'的问题及其解决方案。问题主要涉及到Instant Run功能,该功能可能导致应用启动时短暂白屏、代码更新后无法部署等问题。解决方法包括取消某些Instant Run选项的勾选,如'Enable Instant Run'、'Restart activity on code changes',以及在遇到'Error:Execution failed for task’:app:transformClassesWithDexForDebug’'时进行项目清理。
摘要由CSDN通过智能技术生成

问题描述:

我在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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值