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 @47d8bae5
Error when build, cant build app.
Please help
Gradle 7.2 version
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 @47d8bae5
Error when build, cant build app.
Please help
Gradle 7.2 version
I found out the soltuion for this
Open Android Studio. Go to File > Settings (or Android Studio > Preferences on macOS). In the left pane, navigate to Build, Execution, Deployment > Build Tools > Gradle. Under Gradle JDK, you’ll see the version of Java being used for your project.
Check for java version you use in other project and then fix it.
It took me one day and finally it saved me. Thanks