1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

エラー "org.codehaus.groovy.reflection.ReflectionCache"

Last updated at Posted at 2020-04-16

error
FAILURE: Build failed with an exception. * What went wrong: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org

solution

go to the gradle-wrapper.properties located under android>>gradle/wrapper
and change the gradle version to 6.3 (in my case it was 5.5)

It was like this: 
distributionUrl=https://services.gradle.org/distributions/gradle-5.5-all.zip

Changed to this:
distributionUrl=https://services.gradle.org/distributions/gradle-6.3-all.zip

Compile and it should work.```

source: 
https://github.com/gradle/gradle/issues/10248
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?