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.

Telegram channel

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

If I saved your day, you can support me 🤝

Leave a Reply

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