Godot Version
3.6.rc1.mono
Question
I’ve been trying to create a custom template for android (armv7, arm64v8) to optimize the size of apk. I follow the steps indicated on the page.
Download the source code from github (targeting version 3.6.rc1.mono), install all the necessary packages and run the following commands.
scons p=x11 tools=yes module_mono_enabled=yes mono_glue=no
bin/godot.x11.tools.64.mono --generate-mono-glue modules/mono/glue
Downloaded the godot-mono-builds corresponding to the armv7 and arm64v8 architectures
For armv7
scons p=android target=release_debug module_mono_enabled=yes android_arch=armv7 mono_glue=yes disable_3d=yes tools=no mono_prefix=/android-armv7
For arm64v8
scons p=android target=release_debug module_mono_enabled=yes android_arch=arm64v8 mono_glue=yes disable_3d=yes tools=no mono_prefix=/android-arm64v8
Finally, went this route as the documentation indicates.
platform/android/java
and run
./gradlew generateGodotTemplates
It generated the template I wanted and placed it in the Export Template folder, went to editor and checked how it works and it actually weighs less, however when inserting c# code and exporting the project to android the code does not work (the application does not close), only GdScript code works. Everything works in the editor.
how do I solve it?