升级AS后报UnsupportedMethodException异常解决方案

来源:互联网 发布:java培训机构包工作吗 编辑:程序博客网 时间:2024/04/29 00:30

我们在升级完AndroidStudio后,运行项目在Eventlog中会报如下异常:

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.


解决方案一:

关掉AndroidStudio的Instant Run。

a 在Settings的Build,Execution,Deployment选项卡中点击Instant Run



b 将黄色框标注内容前面的勾取消掉



解决方案二:

更新到最新的Build-Tools

0 0