Home > Net >  Gradle build fails with "unable to resolve class: ExtraModelBuilder"
Gradle build fails with "unable to resolve class: ExtraModelBuilder"

Time:01-25

I would like to start programming an android application. I am following a tutorial etc. and when in the background gradle tries to build the project I get an error:

Starting Gradle Daemon...
Gradle Daemon started in 2 s 153 ms
 
FAILURE: Build failed with an exception.
 
* Where:
Initialization script 'C:\Users\***\AppData\Local\Temp\ijinit.gradle' line: 4
 
* What went wrong:
Could not compile initialization script 'C:\Users\***\AppData\Local\Temp\ijinit.gradle'.
> startup failed:
  initialization script 'C:\Users\***\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

Full exception details: https://pastebin.com/jqQkycLc

I have Android Studio version 2021.3.1 (the latest) and I just started my project (I just added strings in strings.xml)

Thanks for your help!

CodePudding user response:

The actual answer appears to be: upgrade to Gradle 7.2, as it is suggested here.

CodePudding user response:

I don't need any more help. I've put an ndk in and fiddled around with the versions (looking at the compatibilities on the wiki) and everything works. I'll be able to resume watching your tutorial! Thank to @cactustictacs!

  •  Tags:  
  • Related