HIBIIRO
Common Pitfalls and Fixes When Exporting an Android App with Godot 4.3
Introduction
Here are my troubleshooting notes on the issues I ran into—and how I fixed them—while building and releasing an Android app with Godot 4.3.
Environment
Godot 4.3
OpenJDK 17
Android SDK (up to API 35 installed in the SDK folder)
Build & Export Pitfalls
1. OpenJDK Version Mismatch
I initially tried building with a different JDK version, which caused Gradle export errors. Switching to OpenJDK 17 as specified in the official Godot Android Export documentation resolved the build error immediately.
2. Creating a Release Keystore
Exporting a release AAB (Android App Bundle) requires signing with a release keystore, and I wasn’t familiar with generating one via command-line `keytool`.
Instead, I used Android Studio‘s built-in GUI wizard (Generate a key and keystore) to create the `.jks` keystore file cleanly.
3. Release AAB Signing Error on Google Play
When uploading my release AAB to Google Play Console, I received the error: “All uploaded bundles must be signed.”
The cause was that the Keystore User (key alias) entered in Godot’s export settings did not match the key alias I created inside the keystore. Matching the exact alias name fixed the signature verification.
Post-Release Pitfalls
Update (September 19, 2024):
After successfully releasing my 3D dice app “Sainage” on Google Play, I noticed a few extra details I wish I had double-checked before publishing:
1. App Display Name
I left the app name blank in the Android export preset, so it fell back to the internal Godot project name—causing the installed launcher label to differ from the Google Play Store listing title.
Explicitly setting the application name in the export preset (or project settings) fixed it.
2. Adaptive App Icon
Only setting the legacy main icon caused cropping issues on modern Android launchers. Configuring the Adaptive Icon foreground and background layers in Godot’s export options solved it.
3. Package Name (`Unique Name`) Cannot Be Changed After Publishing
I used a placeholder package name during prototyping, not realizing that once an app is published on Google Play, its package ID (e.g., `com.example.mygame`) is permanent and can never be changed without publishing a brand-new app listing. Always double-check your `Unique Name` before uploading your first production bundle!