【问题标题】:How to resolve this issue in windows 10?如何在 Windows 10 中解决此问题?
【发布时间】:2021-12-06 02:29:33
【问题描述】:

任务 ':app:compileDebugJavaWithJavac' 执行失败。

java.lang.IllegalAccessError:类 org.gradle.internal.compiler.java.ClassNameCollector(在未命名模块 @0x16b68a6a 中)无法访问类 com.sun.tools.javac.code.Symbol$TypeSymbol(在模块 jdk.compiler ) 因为模块 jdk.compiler 不会将 com.sun.tools.javac.code 导出到未命名的模块 @0x16b68a6a

我一直面临这个问题。我最近更新了我的 jdk。现在我正在使用 jdk 17 并且还使用 7.2 版本更新了 gradle。

【问题讨论】:

    标签: flutter gradle android-emulator


    【解决方案1】:

    尝试使用 jdk 14 或 16。JDK 17 相对较新,我认为目前还没有很多软件支持它。

    【讨论】:

    • 我试过了。但仍然遇到同样的问题。
    猜你喜欢
    • 2020-02-16
    • 2019-10-26
    • 2015-12-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-24
    • 2015-08-04
    相关资源
    最近更新 更多