java 执行任务“:app:processDebugMainManifest”失败,慌乱

7gyucuyw  于 2023-04-28  发布在  Java
关注(0)|答案(1)|浏览(188)

我试图在Flutter中运行应用程序,但遇到了此错误。有人能帮忙吗?

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @7bcea5fe0

* 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
0yg35tkg

0yg35tkg1#

我刚想出了解决办法我所做的就是

org.gradle.jvmargs=--add-opens java.base/java.io=ALL-UNNAMED

gradle.properties文件
查看此链接:如何解决InaccessibleObjectException(“无法使{member}可访问:module {A} does not 'open {package}' to {B}”)。

相关问题