Could not initialize class ReflectionCache

You may encounter a problem while building project:

Could not initialize class org.codehaus.groovy.reflection.ReflectionCache

There may be at least two problems:

  • Outdated version of gradle
  • Too new version of JDK.

Try upgrading Gradle / downgrading the JDK version to 1.8.

If you still have any questions, feel free to ask me in the comments under this article, or write me on promark33@gmail.com.

If I saved your day, you can support me :)

One thought on “Could not initialize class ReflectionCache

Leave a Reply

Your email address will not be published.