godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.57k stars 20.5k forks source link

Failed to sign APK on export from Windows #90042

Open TesFalcon opened 6 months ago

TesFalcon commented 6 months ago

Tested versions

4.2.1 stable

System information

Windows 10

Issue description

When exporting for Android, I input the keystore, password, etc. and check the box to sign the APK. Build goes fine, but returns the error:

  • editor/export/editor_export_platform.h:179 - Code Signing: All 'apksigner' tools located in Android SDK 'build-tools' directory failed to execute. Please check that you have the correct version installed for your target sdk version. The resulting APK is unsigned.

I can sign the APK on my own using the command line prompt from the project folder where the keystore, etc is located using the command:

c:/users/home/appdata/local/android/sdk/build-tools/34.0.0/apksigner sign --ks pokemerge.keystore pokemerge_andr_2.0.apk

This would prompt me for the password and proceed as normal. Why Godot can't find the apksigner tool and do this as it claims to be trying to do.

Steps to reproduce

Export to Android. Check the box "Package -> Signed". APKSign_Bug Click "Export Project".

Errors in the Output... APKSign_Bug_Message

Minimal reproduction project (MRP)

AEB.zip

Gove2004 commented 3 months ago

我和你遇到了相同的情况,我是Godot4.2.2,我也在寻找办法

Zireael07 commented 3 months ago

@Gove2004 Please use English on this repo