Skip to content

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

Closed
richard-hgs wants to merge 1 commit into
termux:masterfrom
richard-hgs:master
Closed

Added java.io export to gradle.properties to fix app not compiling on latest gradle versions#3804
richard-hgs wants to merge 1 commit into
termux:masterfrom
richard-hgs:master

Conversation

@richard-hgs

Copy link
Copy Markdown

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
Copy Markdown
Member

Which JDK and gradle version are you using?

@ED4free

ED4free commented Mar 27, 2024

Copy link
Copy Markdown

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
Copy Markdown
Member

@ED4free

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

@ED4free

ED4free commented Mar 27, 2024

Copy link
Copy Markdown

Thanks a lot @tareksander , it works !

@tomaszduda23

Copy link
Copy Markdown

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

@fornwall

Copy link
Copy Markdown
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