I keep getting this error when trying to export to android: All located 'apksigner' tools failed to execute

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rob405

I tried following the steps at Exporting for Android — Godot Engine (stable) documentation in English and installed all the required software, but when trying to test my app on my phone with remote debug, after all the resources are added in the apk, I keep getting these errors:

This happened when using both the build-tools from android studio installation and from command line installation. My OpenJDK version is 11.0.18 (I also created the keystore with the keytool from it), and I tried both the 30.0.3 and 32 SDK versions.

2 Likes
:bust_in_silhouette: Reply From: rob405

I found a solution somehow. So, in your ‘build-tools’ folder, move the ‘apksigner.bat’ file in the ‘lib’ folder that you see there (the one that has ‘apksigner.jar’ in it). For some reason it falls back to using the lib folder completely instead and solves the problem. I’m still unsure if I did something wrong or this is a bug.

1 Like
:bust_in_silhouette: Reply From: mustmany

I have the same problem, but it is not solved in your way. I tried different versions of the SDK, but nothing helped. Maybe there are some other solutions to the problem?

make sure you have JRE_HOME and JAVA_HOME environment variables set properly. fixing them solved the issue in my case

nightcrawler | 2023-05-19 08:25

2 Likes