Check out example codes for "Could not initialize class org.codehaus.groovy.vmplugin.VMPluginFactory". It will help you in understanding the concepts better.

Code Example 1

On your Android or Intellij Project, go to:

Property distributionUrl should be: 


If it's an older version then change it, run ./gradlew clean build and try again.

Code Example 2

could not initialize class org.codehaus.groovy.reflection.reflectioncache intellij

Learn ReactJs, React Native from