Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 259
luca marchese Avatar asked Jun 27 '21 11:06

luca marchese


1 Answers

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.

like image 138
Talal Absar Avatar answered Oct 18 '22 20:10

Talal Absar