An error when I try to run my android studio program

79 Views Asked by At

When I try to run the program it appears: "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 @7c389728" It also appears:Main

I want to try to solve this and see how my program is going

1

There are 1 best solutions below

0
Harshali On

I'm also getting this issue and solved by appending

 --add-opens java.base/java.io=ALL-UNNAMED

in org.gradle.jvmargs= ... property

to the file ./android/gradle.properties

hope it will help you