首页 > 解决方案 > 任务':firebase_core:compileDebugJavaWithJavac'的Flutter执行失败

问题描述

我想调试我的颤振项目。但是当我这样做时,调试控制台会向我显示以下错误:

warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.3.4\android\src\main\java\io\flutter\plugins\firebase\core\FirebaseCorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.3.4\android\src\main\java\io\flutter\plugins\firebase\core\FirebaseCorePlugin.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.
3 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':firebase_core:compileDebugJavaWithJavac'.
> java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x49887210) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x49887210

该项目通过 github 桌面与我的 github 存储库同步。通常,我在我的主 PC 上运行该项目,但昨天,我在我的笔记本电脑上运行它:我通过 github 桌面克隆了存储库,并想在第一次运行应用程序时开始编码。但是,这个错误发生了。我一直在寻找问题,但找不到任何解决方案。我希望你能帮帮我。

标签: androidfirebasefluttergradlejavac

解决方案


推荐阅读