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

来源:互联网 发布:mac微信接收的文件 编辑:程序博客网 时间:2024/04/30 22:24

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



1 0
原创粉丝点击