Error running example: This version of Android Studio is incompatible with the Gradle Plugin used.解决

Error runningexample: This version of Android Studio is incompatible with the Gradle Pluginused. Try disabling Instant Run (or updating either the IDE or the Gradleplugin to the latest version)

 

当我们导入开源项目的时候,可能碰到以上这样的情况,编译出现问题。这里的意思是要求使用 Android Gradle Plugin最新稳定版。

 

这里我们的解决方案是:

一、在build.gradle替换一下gradle版本2.0.0,如下图1,2步骤

classpath'com.android.tools.build:gradle:2.0.0'



二、稍等一会,就会出现下面的情况,直接点击操作即可。


注意:你会发现下面的版本变化了,这里就是同步的时候,会自动找最新稳定版本。



经过以上一二步骤,就解决了。


ps:我的博客:http://blog.csdn.net/shenshizhong

        我的简书:http://www.jianshu.com/users/345daf0211ad/latest_articles



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值