无法初始化类org.codehaus.groovy.reflection.ReflectionCache [英] Could not initialize class org.codehaus.groovy.reflection.ReflectionCache

查看:236
本文介绍了无法初始化类org.codehaus.groovy.reflection.ReflectionCache的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在Android Studio上使用Flutter.今天,我更新了它,一切都变得艰难了.

I've been using Flutter on Android Studio. Today, I updated it and everything went downhill.

在尝试解决此问题时,我一直遇到不同的错误.

I've been having different errors throughout my attempt to fix this.

第一个错误:无法初始化org.codehaus.groovy.runtime.invokerhelper类

First error: could not initialize class org.codehaus.groovy.runtime.invokerhelper

第二个错误:无法初始化org.codehaus.groovy.reflection.ReflectionCache类

Second error: could not initialize class org.codehaus.groovy.reflection.ReflectionCache

无论如何,我一直在研究,并且已经做了以下

Anyways, I've been researching and I've done the following

  1. 更新的Java SDK.
  2. 更新后的JRE
  3. 为环境变量添加了必要的路径
  4. 更新的Gradle

但是仍然没有任何工作,我无法运行我的项目.请帮忙吗?

以下是一些我的不同尝试的屏幕截图:

Here are some screenshots of my different attempts:

推荐答案

我终于通过卸载Java 8以外的任何东西修复了它.似乎Android Studio不喜欢升级后的Java.现在一切正常.

I finally fixed it by uninstalling anything beyond Java 8. It seems like Android Studio doesn't like upgraded Java. Everything works now.

这篇关于无法初始化类org.codehaus.groovy.reflection.ReflectionCache的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆