From d0a73f57fab37e22753da2303fd5fff4413d0103 Mon Sep 17 00:00:00 2001 From: Sk Sahil <57060638+Sahil-pixel@users.noreply.github.com> Date: Fri, 26 Jul 2024 13:59:16 +0530 Subject: [PATCH] Update gradle.tmpl.properties To Avoid if androidx=true > java.lang.OutOfMemoryError (no error message) --- .../bootstraps/common/build/templates/gradle.tmpl.properties | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pythonforandroid/bootstraps/common/build/templates/gradle.tmpl.properties b/pythonforandroid/bootstraps/common/build/templates/gradle.tmpl.properties index cea16375d2..d9439e317f 100644 --- a/pythonforandroid/bootstraps/common/build/templates/gradle.tmpl.properties +++ b/pythonforandroid/bootstraps/common/build/templates/gradle.tmpl.properties @@ -6,4 +6,5 @@ org.gradle.jvmargs=-Xmx2500m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemor {% if args.enable_androidx %} android.useAndroidX=true android.enableJetifier=true -{% endif %} \ No newline at end of file +org.gradle.jvmargs=-Xmx2500m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +{% endif %}