AS: Unsupported method: AndroidProject.getPluginGeneration().
2016-12-27 10:20
417 查看
转自http://blog.csdn.net/u012764110/article/details/52885234
报错内容
2
3
4
5
1
2
3
4
5
解决方法:关掉instant run
还有一个解决方法,下载LockHunter,然后再app的build.gradle中加上如下代码,确保清空build文件夹内容
报错内容
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.1
2
3
4
5
1
2
3
4
5
解决方法:关掉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 }
相关文章推荐
- AS: Unsupported method: AndroidProject.getPluginGeneration().
- AS: Unsupported method: AndroidProject.getPluginGeneration().
- AS: Unsupported method: AndroidProject.getPluginGeneration().
- AS: Unsupported method: AndroidProject.getPluginGeneration().
- AS: Unsupported method: AndroidProject.getPluginGeneration().
- 解决UnsupportedMethodException: Unsupported method: AndroidProject.getPluginGeneration().
- Unsupported method: AndroidProject.getPluginGeneration()
- Android Studio报错:Unsupported method: AndroidProject.getPluginGeneration()的一种解决方法
- Unsupported method: AndroidProject.getPluginGeneration().
- 踩坑实录 Android Studio 报错:Unsupported method: AndroidProject.getPluginGeneration().
- Unsupported method: AndroidProject.getPluginGeneration().
- Android Studio报错:Unsupported method: AndroidProject.getPluginGeneration().
- android studio: Unsupported method: AndroidProject.getPluginGeneration().
- Unsupported method: AndroidProject.getPluginGeneration()
- [置顶] Android Studio报错:Unsupported method: AndroidProject.getPluginGeneration()的一种解决方法
- Unsupported method: AndroidProject.getPluginGeneration()
- Android Studio问题---Unsupported method: AndroidProject.getPluginGeneration().
- Android Studio问题---Unsupported method: AndroidProject.getPluginGeneration().
- Android Studio 提示 Unsupported method: AndroidProject.getPluginGeneration()的解决方法
- Androidstudio运行出现Unsupported method: AndroidProject.getPluginGeneration() while running project