Could not initialize class org.codehaus.groovy.reflection.ReflectionCache Answer’s
The class org.codehaus.groovy.reflection.ReflectionCache could not be initialized. This may have occurred because the required class wasn't found or there was an error in its initialization.
Could not initialize class org.codehaus.groovy.vmplugin.VMPluginFactory
on Jan 01, 1970
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.
0
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
on Jan 01, 1970
It's probably because you use Gradle as the build system and JDK14
and the Gradle version is old. Reference:
https://github.com/gradle/gradle/issues/10248
If you use Gradle Wrapper then refer to
$PROJECT_ROOT/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.
0
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
on Jan 01, 1970
Add the following lines to your $HOME/.bash_profile or $HOME/.bashrc (if you are using zsh then ~/.zprofile or ~/.zshrc) config file:
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"
0
Answer for Could not initialize class org.codehaus.groovy.reflection.ReflectionCache in java show above:
Java answers related to "Could not initialize class org.codehaus.groovy.reflection.ReflectionCache"
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper Could not initialize class org.codehaus.groovy.reflection.ReflectionCache Could not initialize class org.codehaus.groovy.runtime.InvokerHelper Could not initialize class org.codehaus.groovy.reflection.ReflectionCache Could not initialize class org.codehaus.groovy.reflection.ReflectionCache A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution java initalize arraylist initialize a list in java initialize a list in java initialize a list in java Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found what is the need of abstract class what is the need of abstract class when we should use abstract class import java.util.Scanner What access modifiers can be used for class java get class by string name how to create a rectangle class in java instance variables how to make one java class inherit from another Can you execute a program without main() method what access modifiers can be used for methods java define a generic class that produces Super in javascript how to provide a long string in Java Scanner class when we should use abstract class what is the need of abstract class
View All Java queries
Java queries related to "Could not initialize class org.codehaus.groovy.reflection.ReflectionCache"
Could not initialize class org.codehaus.groovy.reflection.ReflectionCache Could not initialize class org.codehaus.groovy.runtime.InvokerHelper Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution initialize a list in java how to provide a long string in Java Scanner class how to make one java class inherit from another java define a generic class that produces java get class by string name when we should use abstract class how to create a rectangle class in java What access modifiers can be used for class what is the need of abstract class package javafx.fxml does not exist Task 'assembleDebug' not found in project the superclass javax.servlet.http.httpservlet was not found on the java java not equal
Browse Other Code Languages
Abap ActionScript Assembly BASIC C C# C++ Clojure Cobol CSS Dart Delphi Elixir Erlang F# Fortran Go Groovy Haskell Html Java Javascript Julia Kotlin Lisp Lua Matlab Objective-C Pascal Perl PHP PostScript Prolog Python R Ruby Rust Scala Scheme Shell/Bash Smalltalk SQL Swift TypeScript VBA WebAssembly Whatever