# Godot 4 Android Games Closed Testing Playbook: Gradle AAB Export, Compatibility Renderer & 16 KB

> Export signed Godot 4.3/4.4+ Android App Bundles (.aab) with Gradle Build enabled, ARM64 export templates, Vulkan Mobile / GLES3 fallbacks, and 14-day closed testing continuity.

- **Canonical URL**: https://staging.gootester.com/frameworks/godot
- **Config File**: export_presets.cfg & android/build/build.gradle
- **Build Command**: `godot --headless --export-release "Android" builds/godot-game-release.aab`

```ini
[preset.0]
name="Android"
platform="Android"
export_path="builds/godot-game-release.aab"

[preset.0.options]
gradle_build/use_gradle_build=true
gradle_build/export_format=1
gradle_build/target_sdk=35
architectures/arm64-v8a=true
architectures/armeabi-v7a=true
version/code=3
version/name="1.0.2"
package/unique_name="com.example.godotgame"
package/signed=true
```

## Critical Play Console Gotchas
1. **Leaving Export Format set to 0 (APK) instead of 1 (AAB)**: Godot's Android export preset defaults to standalone APK output unless Use Gradle Build is checked and Export Format is switched to Export AAB (export_format=1). Google Play Console rejects APK uploads for all newly created app listings.
2. **Forward+ or Mobile Vulkan renderer crashing budget Mali/PowerVR GPUs**: Godot 4's Vulkan Mobile renderer looks great on modern Snapdragon chips, but older PowerVR, Mali-G52, or budget Unisoc Android drivers frequently exhibit black screens or VK_ERROR_DEVICE_LOST crashes. Enable Compatibility (OpenGL ES 3) fallback for broad indie reach.
3. **Exporting with Debug Keystore instead of Release Keystore in CI**: Running godot --export-debug or leaving keystore/release blank inside Editor Settings or GODOT_ANDROID_KEYSTORE_RELEASE_* CI environment variables signs your .aab with Android's debug.keystore, triggering an immediate Play Console untrusted certificate upload rejection on rollout.
4. **Legacy Godot 4.0–4.2 export templates failing 16 KB page alignment**: Precompiled libgodot_android.so templates prior to Godot 4.3/4.4+ were linked with 4 KB ELF page alignment and older NDK versions. Upgrade your project and export templates to Godot 4.3+ / 4.4+ (or rebuild templates with NDK r28) before closed testing.

## Setting Up Godot 4 Gradle Builds, Keystores & Export Templates

Godot 4 has become a powerhouse for solo 2D and 3D indie Android developers thanks to sub-40 MB binary footprints and zero engine royalties. To produce a Google Play-compliant Android App Bundle (`.aab`), install the matching Godot Export Templates, run `Project -> Install Android Build Template` (when using GDExtension plugins like AdMob, Play Billing, or Play Games Services), enable `Use Gradle Build` inside `Project -> Export -> Android`, and switch `Export Format` to `Export AAB` (`gradle_build/export_format=1`).
Double-check `package/unique_name` in `export_presets.cfg` before uploading your first Closed Testing release: Godot defaults to `com.example.$genname`, which Play Console permanently rejects. Generate a dedicated RSA-2048/4096 upload keystore (`keytool -genkeypair -v -keystore upload.keystore -alias upload -keyalg RSA -keysize 2048 -validity 10000`), supply credentials via `GODOT_ANDROID_KEYSTORE_RELEASE_PATH`, `GODOT_ANDROID_KEYSTORE_RELEASE_USER`, and `GODOT_ANDROID_KEYSTORE_RELEASE_PASSWORD` in CI, and never commit keystore secrets to Git.
For Godot C# (`.NET 8/9`) projects rather than pure GDScript, verify you are running Godot 4.3+ `.NET` builds where Android ARM64 AOT export templates are fully supported, and inspect any custom GDExtension `.so` binaries in Play Console's App Bundle Explorer to confirm 16 KB ELF page size alignment (`target_sdk=35` or `36`).

## Choosing Between Mobile (Vulkan) and Compatibility (GLES3) Renderers

One of the highest-leverage technical decisions for Godot 4 Android games entering a 12-tester, 14-day closed testing campaign is renderer selection (`rendering/renderer/rendering_method.mobile`). While the `mobile` renderer leverages Vulkan 1.0+ for PBR lighting and compute shaders, real-world Android tester fleets include mid-range and entry-level devices whose OEM Vulkan drivers contain conformance bugs, slow pipeline cache compilation, or high memory overhead. For 2D pixel-art, UI-driven strategy, puzzle, and stylized low-poly 3D titles, switching the mobile renderer to `gl_compatibility` (OpenGL ES 3.0) routinely slashes cold-start times, cuts RAM PSS by 40–80 MB, and eliminates driver-induced crashes across 99%+ of active Android devices.
If your game requires Vulkan `mobile` features, enable shader baker / Ubershaders in Godot 4.4+ to prevent first-hit particle stutter and verify fallback settings (`rendering/rendering_device/fallback_to_opengl3`). Pairing human gameplay testers with GOOtester's separate physical-device ARM64 ADB QA ($12 Standard and $20 Premium tiers) captures objective `dumpsys meminfo` PSS memory and `dumpsys gfxinfo` frame-jank metrics on real smartphones without ever mixing automated ADB runs into your human tester count.
Also test Android lifecycle audio and input focus transitions carefully: pause `AudioServer` buses and save local progress inside `_notification(NOTIFICATION_APPLICATION_FOCUS_OUT)` and `NOTIFICATION_APPLICATION_PAUSED` so incoming phone calls or lock-screen transitions never cause background audio leaks or state loss.

## Shipping Iterative Godot Releases Across Your 14-Day Closed Test

Godot's headless CLI (`godot --headless --export-release "Android" builds/game.aab`) runs cleanly in GitHub Actions in under two minutes, making mid-test iteration painless. After your initial Closed Testing release passes Google review and GOOtester confirms your `testers@gootester.com` Google Group opt-in link, our local service clock starts (`$6` Basic for 12 testers/14d, `$12` Standard for 15 testers/16d, `$20` Premium for 25 testers/24d).
Push `version/code=2` around Day 5 (fixing safe-area camera cutouts via `DisplayServer.get_display_safe_area()` or audio pause behavior on `NOTIFICATION_APPLICATION_PAUSED`) and `version/code=3` around Day 10. Because Google Play alone grants Production Access, pairing continuous 14-day human opt-in retention with clear GDScript/engine stability iterations maximizes readiness for review.
Verify touch target scaling across 16:9, 20:9, and foldable aspect ratios using `stretch/mode = "canvas_items"` and `stretch/aspect = "expand"` in `project.godot` so HUD controls remain crisp and reachable for every closed tester.
