我們在升級完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
新聞熱點
疑難解答