Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execution failed for task ':app:processDebugMainManifest'. in flutter

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
like image 668
Abdeldjalil Chougui Avatar asked Aug 03 '26 16:08

Abdeldjalil Chougui


1 Answers

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?

like image 58
Abdeldjalil Chougui Avatar answered Aug 05 '26 07:08

Abdeldjalil Chougui