Error:Could|Error:Could not initialize class org.jetbrains.kotlin.gradle.KotlinGradleModelBuilder
新增:
后面总感觉原来的解决办法太一刀切了,因为有些项目是引入了Kotlin的。又捣鼓了一下发现是Kotlin插件版本的问题,Version: 1.1.60-release-Studio3.0-1 这个会出现BUG,升级到Version: 1.2.0就可以了,也不用关掉Kt插件了。
【Error:Could|Error:Could not initialize class org.jetbrains.kotlin.gradle.KotlinGradleModelBuilder】以下是原文:
Android Studio 3.0.1 一直用的好好的,结果今天维护一个项目。open后编译报了个Error:Could not initialize class org.jetbrains.kotlin.gradle.KotlinGradleModelBuilder
百度谷歌一圈也没个答案,最后stackoverflow找到个类似的问题,解决办法是在Settings -> Plugins -> Kotlin,关掉kotlin插件后重启Studio就可以了,试了一下果然可以,随便记录一下。Ps: 这个项目没有引入Kotlin的,如果引入了感觉可以先关闭Build完了再打开试试。
推荐阅读
- gitlab|gitlab 通过备份还原 admin/runner 500 Internal Server Error
- 解决SyntaxError:|解决SyntaxError: invalid syntax
- (If)|(If) 404 Not Found
- cannot|cannot be read or is not a valid ZIP file
- nottodo,别做什么比计划做什么更重要
- 由Uncaught|由Uncaught TypeError: this.player.startMoveAt is not a function引申
- 打开Anaconda|打开Anaconda Navigator 时报错 error 5 拒绝访问
- 运行报错Cannot|运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’
- iOS【NotificationContent-App|iOS【NotificationContent-App Group共享】
- Android|Android Notification