任务“:app:processDebugMainManifest”执行失败。颤动中

Abd*_*gui 0 java module flutter

我正在尝试在 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
Run Code Online (Sandbox Code Playgroud)

Abd*_*gui 7

我刚刚找到解决方案我所做的就是添加

org.gradle.jvmargs=--add-opens java.base/java.io=ALL-UNNAMED
Run Code Online (Sandbox Code Playgroud)

gradle.properties文件

请参阅此链接:如何解决 Java 9 上的 InaccessibleObjectException(“无法使 {member} 可访问:模块 {A} 不会向 {B} '打开 {package}'”)?