android - 任务':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 桌面克隆了存储库,并想在第一次运行应用程序时开始编码。但是,这个错误发生了。我一直在寻找问题,但找不到任何解决方案。我希望你能帮帮我。
解决方案
推荐阅读
- c - “O_DIRECT 512 字节对齐”是什么意思?
- mmap - 当 mmap 和 memcpy 特定文件(/sys/devices/pci~~ 递归文件)时内核崩溃
- python - 如何在包含字典的循环上实现错误处理?
- google-translate - 为什么 HTML 标记中的文本有时无法翻译?
- android - 真正的android双显示权限问题
- google-cloud-platform - 使用部署管理器更新 API 更新现有部署
- java - 如何在 JFR 中启用对象统计?
- python - Tkinter 对象没有属性“绑定”
- java - “mvn clean install”导致 Spring Boot 应用程序中出现空白 PDF 文档
- python - 如何在 pytorch 中为 DataLoader 提供图像和标签?