Tested versions
Reproducible in: 4.5-beta5 4.4.1 stable, 4.3 stable
Untestable at: 4.0.0 stable (The scenario cannot be tested, because there is already an error in the editor in the export popup missing configuration for debug keystore.)
System information
Arch Linux SMP PREEMPT_DYNAMIC Sat, 02 Aug 2025 01:20:06 +0000 - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 570 Series (RADV POLARIS10) - Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz (4 Threads)
Issue description
When attempting to export a Godot project to Android in release mode, the export process erroneously fails if any debug keystore-related environment variables (GODOT_ANDROID_KEYSTORE_DEBUG_USER, GODOT_ANDROID_KEYSTORE_DEBUG_PASSWORD, GODOT_ANDROID_KEYSTORE_DEBUG_PATH) are set.
The specific error message received is:
ERROR: Cannot export project with preset "android" due to configuration errors: Either Debug Keystore, Debug User AND Debug Password settings must be configured OR none of them.
export.log
This behavior is undesirable because, during a release mode export, the presence or absence of debug keystore configurations or associated environment variables should be entirely irrelevant to the export. The release build should exclusively rely on the specified release keystore settings. The current implementation incorrectly validates debug keystore information even when it is not applicable to the requested export mode, thus preventing successful release builds under these circumstances.
Steps to reproduce
- Execute the export command, ensuring
godot is in your system's PATH:
env GODOT_ANDROID_KEYSTORE_DEBUG_USER=androiddebugkey godot --headless --verbose --export-release android "./output.apk"
Note: The env command temporarily sets the GODOT_ANDROID_KEYSTORE_DEBUG_USER environment variable for the duration of this command, simulating a scenario where debug keystore variables are present in the environment.
Actual result: Error due to missing information relevant to debug keystore.
Expected result: Error due to missing information relevant to release keystore.
Minimal reproduction project (MRP)
The ZIP is empty project created with 4.3 stable version containing export template for Android.
android-release-test.zip
Tested versions
Reproducible in:
4.5-beta54.4.1 stable,4.3 stableUntestable at:
4.0.0 stable(The scenario cannot be tested, because there is already an error in the editor in the export popupmissing configuration for debug keystore.)System information
Arch Linux SMP PREEMPT_DYNAMIC Sat, 02 Aug 2025 01:20:06 +0000 - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 570 Series (RADV POLARIS10) - Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz (4 Threads)
Issue description
When attempting to export a Godot project to Android in release mode, the export process erroneously fails if any debug keystore-related environment variables (
GODOT_ANDROID_KEYSTORE_DEBUG_USER,GODOT_ANDROID_KEYSTORE_DEBUG_PASSWORD,GODOT_ANDROID_KEYSTORE_DEBUG_PATH) are set.The specific error message received is:
ERROR: Cannot export project with preset "android" due to configuration errors: Either Debug Keystore, Debug User AND Debug Password settings must be configured OR none of them.export.log
This behavior is undesirable because, during a release mode export, the presence or absence of debug keystore configurations or associated environment variables should be entirely irrelevant to the export. The release build should exclusively rely on the specified release keystore settings. The current implementation incorrectly validates debug keystore information even when it is not applicable to the requested export mode, thus preventing successful release builds under these circumstances.
Steps to reproduce
godotis in your system'sPATH:Note: The env command temporarily sets the
GODOT_ANDROID_KEYSTORE_DEBUG_USERenvironment variable for the duration of this command, simulating a scenario where debug keystore variables are present in the environment.Actual result: Error due to missing information relevant to
debugkeystore.Expected result: Error due to missing information relevant to
releasekeystore.Minimal reproduction project (MRP)
The ZIP is empty project created with
4.3 stableversion containing export template for Android.android-release-test.zip