unable to resolve class org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder

关于Android studio Gradle 6.5+ ijinit.gradle导入失败
会报错如下信息:

FAILURE: Build failed with an exception.

* Where:
Initialization script 'C:\Users\Administrator\AppData\Local\Temp\ijinit.gradle' line: 4

* What went wrong:
Could not compile initialization script 'C:\Users\Administrator\AppData\Local\Temp\ijinit.gradle'.
> startup failed:
  initialization script 'C:\Users\Administrator\AppData\Local\Temp\ijinit.gradle': 4: unable to resolve class org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder
   @ line 4, column 1.
     import org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder
     ^
  
  1 error


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 57ms

解决方案是把Android studio

安装到C盘,安装到C盘,安装到C盘。

血的教训!

你可能感兴趣的:(unable to resolve class org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder)