美文网首页android笔记Android技术知识
Error running example: This ver

Error running example: This ver

作者: shenshizhong | 来源:发表于2016-09-26 17:18 被阅读77次

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

相关文章

网友评论

    本文标题: Error running example: This ver

    本文链接:https://www.haomeiwen.com/subject/lymqyttx.html