Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added java.io export to gradle.properties to fix app not compiling on latest gradle versions #3804

Closed
wants to merge 1 commit into from

Conversation

richard-hgs
Copy link

This will fix the error on andorid studio latest versions

"Unable to make field private final java.lang.String java.io.File.path accessible:
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 @42760a00"

"Unable to make field private final java.lang.String java.io.File.path accessible:
 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 @42760a00"
@agnostic-apollo
Copy link
Member

Which JDK and gradle version are you using?

@ED4free
Copy link

ED4free commented Mar 27, 2024

Hi @richard-hgs, I am a beginner with Android Studio, can you please tell me which line to add in which gradle file ?
I have the same error : "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 @8ee186" when I build termux-app dowloaded from
Thanks a lot.
Thierry

@tareksander
Copy link
Member

@ED4free

Had the same issue, I updated AGP and Gradle to this.

@ED4free
Copy link

ED4free commented Mar 27, 2024

Thanks a lot @tareksander , it works !

@tomaszduda23
Copy link

fluttercommunity/flutter_workmanager#287 (comment) it also solve the problem

@fornwall
Copy link
Member

Thanks! Closing this in favour of #3619.

@fornwall fornwall closed this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants