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)
我刚刚找到解决方案我所做的就是添加
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}'”)?
| 归档时间: |
|
| 查看次数: |
2586 次 |
| 最近记录: |