1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Fixed Android build

This commit is contained in:
Laurent Cozic 2020-08-02 13:37:32 +01:00
parent 619b426689
commit a273bbaeee
2 changed files with 7 additions and 0 deletions

View File

@ -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 {

View File

@ -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