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.

Leave a Reply

Your email address will not be published. Required fields are marked *