3
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

3

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

1 Comment

Its works for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.