3

After upgrading from 3.1 to 3.2 Gradle build is failed with error

Cause: startup failed:
initialization script '/tmp/ijinit.gradle': 3: unable to resolve class org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder
 @ line 3, column 1.
   import org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder
   ^

1 error
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
Tigran Babajanyan
  • 1,967
  • 1
  • 22
  • 41

1 Answers1

0

Change your gradle version to latest version.

Change gradle version to 4.6 from gradle-wrapper.properties file for android studio 3.2.

OR

Select Project structure and then project and update gradle version like below: enter image description here

Also make sure your project build.gradle dependency are updated:

 classpath 'com.android.tools.build:gradle:3.2.0'

If this still doesn't help follow this steps https://stackoverflow.com/a/38928660/4553806

Tigran Babajanyan
  • 1,967
  • 1
  • 22
  • 41
0xAliHn
  • 18,390
  • 23
  • 91
  • 111