47

I have a big problem with an old project (Android Studio) of mine that I can no longer run on my new pc. How can I solve this problem?

* 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 @387a8b67
4

1 Answer 1

64

You must be using JDK-16 which isn't supported yet, use the version below JDK-16, for example, I am using JDK-11 and it worked for me.

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

4 Comments

Supported by what? It is fully released according to oracle.com/java/technologies/javase-downloads.html
Jdk 15 worked for me, I got this problem in Flutter 2.8.1.
Correct ! and you can also use openjdk 14
this works for me with jdk 19 stackoverflow.com/a/72395717/5293521

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.