-1

I'm trying to run an app in flutter and I got this error. Anyone can help ?

* 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

1 Answers1

0

I just figured out the solution All I did is to add

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

to the gradle.properties file

See this link : How to solve InaccessibleObjectException ("Unable to make {member} accessible: module {A} does not 'opens {package}' to {B}") on Java 9?