Skip to content

Commit f78e7a0

Browse files
committed
settings to fix unamed module error in debug projects
1 parent f5078f1 commit f78e7a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

debug/gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@
1313
#Wed Dec 30 11:02:34 EST 2020
1414
android.enableJetifier=true
1515
android.useAndroidX=true
16+
17+
# Line to fix the ''module java.base does not "opens java.io" to unnamed module '' error in Android Studio:
18+
# https://stackoverflow.com/questions/67782975/how-to-fix-the-module-java-base-does-not-opens-java-io-to-unnamed-module
19+
# Probably not needed if using a version of the Android Gradle Plugin compatible with the JDK:
20+
# https://docs.gradle.org/current/userguide/compatibility.html
21+
org.gradle.jvmargs=-Xmx1536M --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

0 commit comments

Comments
 (0)