关于Android Studio升级到2.0后和Gradle插件不兼容的问题

来源:互联网 发布:php 返回 服务器404 编辑:程序博客网 时间:2024/05/21 21:42

今天升级AS到2.0后,用AS在真机上调试,发现报了如下错误:

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

查询了StackOverflow,用以下方式解决了问题

将Project-的build.gradle中的Gradle版本改为如下版本:

classpath 'com.android.tools.build:gradle:2.0.0'
rebuild下既可以正常使用。


链接:http://stackoverflow.com/questions/36512622/update-gradle-version-on-android-studio-2-0

0 0
原创粉丝点击