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′

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

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

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

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

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

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

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

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

    原文作者:shenshizhong
    原文地址: https://www.jianshu.com/p/36af6a0d4c91
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞