首页 > 学院 > 开发设计 > 正文

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

2019-11-09 14:48:49
字体:
来源:转载
供稿:网友

我们在升级完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


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表