Android Studio提示 Unsupported method: AndroidProject.getPlu

来源:互联网 发布:c语言编程教材哪本书好 编辑:程序博客网 时间:2024/06/05 11:53
升级了Android Studio的工程到gradle 2.0后,在编译工程的时候提示以下错误:


UnsupportedMethodException


Unsupported method: AndroidProject.getPluginGeneration().


The version of Gradle you connect to does not support that method.


To resolve the problem you can change/upgrade the target version of Gradle you connect to.


Alternatively, you can ignore this exception and read other information from the model.


出现这个问题的原因是新版本的Android Studio会检查“ Instant Run” 这个特性,所以解决办法就是关掉这个检查。如图下所示


参考来自:http://www.qingpingshan.com/rjbc/az/157645.html

0 0
原创粉丝点击