I get this error after updating android studio:
Error:Cause: startup failed:
initialization script 'C:\Users\sunny\AppData\Local\Temp\ijinit.gradle': 17: unable to resolve class org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder
@ line 17, column 1.
import org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder
CHANGING GRADLE TO LATEST VERSION FIXED THIS PROBLEM
In this case it was changing from 3.3 to 4.0
If you want to see what the latest Gradle version is, have a look here.
Change your gradle version in project setting: If you are using mac - click File->Project structure,then change gradle version (Windows will be similar),here:
And check your build.gradle of project,change dependency of gradle,like this:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath
'com.android.tools.build:gradle:2.3.2'
}
}
If none of the above works you can roll back to previous android studio version to a stable release:
Select the version you want here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With