How to Make Field Private Final Java. Lang. String Java. Io. File. Path Accessible [Duplicate]

How to Make Field Private Final Java. Lang. String Java. Io. File. Path Accessible [Duplicate]

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

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.

4
James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.