Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 594
kunal Avatar asked Jul 03 '17 02:07

kunal


1 Answers

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:

image

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

like image 159
HB. Avatar answered Nov 11 '22 08:11

HB.