首页 > 系统 > Android > 正文

AS: Unsupported method: AndroidProject.getPluginGeneration().

2019-11-07 23:32:21
字体:
来源:转载
供稿:网友

报错内容

16:56:06 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.1234512345

解决方法:关掉instant run

这里写图片描述

还有一个解决方法,下载LockHunter,然后再app的build.gradle中加上如下代码,确保清空build文件夹内容

task clean(type: Exec) { ext.lockhunter = '/"D://Program Files//LockHunter//LockHunter.exe/"' def buildDir = file(new File("build")) commandLine 'cmd', "$lockhunter", '/delete', '/silent', buildDir}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表