From cd7484b53582e50f273aba4dd64794fff09da31c Mon Sep 17 00:00:00 2001 From: richardgs Date: Fri, 26 Jan 2024 22:03:59 -0300 Subject: [PATCH] Added export to gradle.properties to fix app not compiling due to Error "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" --- gradle.properties | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index fc751ab345..90de122196 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,12 @@ # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true -org.gradle.jvmargs=-Xmx2048M +org.gradle.jvmargs=-Xmx2048M \ +--add-exports=java.base/sun.nio.ch=ALL-UNNAMED \ +--add-opens=java.base/java.lang=ALL-UNNAMED \ +--add-opens=java.base/java.lang.reflect=ALL-UNNAMED \ +--add-opens=java.base/java.io=ALL-UNNAMED \ +--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED android.useAndroidX=true minSdkVersion=21