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

[java] view plain copy 关于Android Studio升级到2.0后和Gradle插件不兼容的问题关于Android Studio升级到2.0后和Gradle插件不兼容的问题
  1. 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

 

相关文章: