git clone https://github.com/godotengine/godot.git
cd godot
git checkout 4.x # 記住要改返你嘅版本號開 Command Prompt,行呢句 command 就可以編譯 debug template:
scons platform=android target=template_debug generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yes不過提提你,真正要上傳去 Play Console 嘅 build,最好用 release template,唔好用 debug:
scons platform=android target=template_release generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yesscons platform=android target=template_release generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yes separate_debug_symbols=yes咁樣 SCons 就會幫你另外整一個符號檔案。
呢度有個重點:一定要上傳同你個 AAB/APK 完全同一 batch 編譯出嚟嘅 debug symbols,如果唔係 Stack Trace 就會解唔到。
希望呢篇懶人包幫到各位 Godot 開發者,順利將 Android game 上傳到 Play Console!