diff --git a/ReactNativeClient/android/app/build.gradle b/ReactNativeClient/android/app/build.gradle index e32827b1ec..774b5973d6 100644 --- a/ReactNativeClient/android/app/build.gradle +++ b/ReactNativeClient/android/app/build.gradle @@ -111,6 +111,9 @@ def enableHermes = project.ext.react.get("enableHermes", false); android { compileSdkVersion rootProject.ext.compileSdkVersion + // To fix this error: + // > java.io.UncheckedIOException: java.io.IOException: Execution of compression failed. java.lang.OutOfMemoryError + // https://stackoverflow.com/q/57284812/561309 dexOptions { javaMaxHeapSize "4g" } compileOptions { diff --git a/ReactNativeClient/android/gradle.properties b/ReactNativeClient/android/gradle.properties index adafe1ce06..dba925fbab 100644 --- a/ReactNativeClient/android/gradle.properties +++ b/ReactNativeClient/android/gradle.properties @@ -21,4 +21,8 @@ # https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.md android.useAndroidX=true android.enableJetifier=true + +# To fix this error: +# > java.io.UncheckedIOException: java.io.IOException: Execution of compression failed. java.lang.OutOfMemoryError +# https://stackoverflow.com/q/57284812/561309 org.gradle.jvmargs=-Xmx4608m \ No newline at end of file