I have open a old android project and upgraded to new Gradle but this error is occuring:
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 @6343c582
Help me to fix this.
If you are importing an old project you are likely to face this error.
Basically you made your old project with lower JDK versions and now you have higher JDK versions installed currently in your system.
You should avoid higher JDK versions for building older projects.
If this not work, check this one: https://www.communityforum.in/question/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-2f9fb583/