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