Answers for "Could not initialize class org.codehaus.groovy.runtime"

19

Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

This is because of the gradle version:

In your project
go to: gradle / wrapper / gradle-wrapper.properties /

change the version:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

to
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip

Source
https://stackoverflow.com/questions/35000729/android-studio-could-not-initialize-class-org-codehaus-groovy-runtime-invokerhel
Posted by: Guest on October-16-2020
4

Could not initialize class org.codehaus.groovy.vmplugin.VMPluginFactory

On your Android or Intellij Project, go to:

yourprojectname/gradle/wrapper/gradle-wrapper.properties. 
Property distributionUrl should be: 

distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip

If it's an older version then change it, run ./gradlew clean build and try again.
Posted by: Guest on September-11-2020

Code answers related to "Could not initialize class org.codehaus.groovy.runtime"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language