-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All located 'apksigner' tools in /home/apollo/Android/Sdk/build-tools failed to execute #95070
Comments
these are path variables but after i tweaked in them i will provide anything that can help solving the issue |
You should open an issue in godotengine/godot-docs, #87346 was cherry-picked for 4.2.2 and docs no longer list the correct information about requirements, use requirements from 4.3 docs to export your game |
i will try the 4.3 requirements |
Try running |
no it gives me 0.9 |
What does |
you're thinking about permissions ? |
Yes, they are the same as the ones I have and I can export just fine. At this point, I'm not really sure how to help you. Try reinstalling 34.0.0 version of Build-Tools and try to use Godot 4.3 RC2. Do you use Flatpak or something simillar instead of downloading Godot from the site? |
No I downloaded it from the site. this one https://godotengine.org/download/linux/. Yeah i don't know either how to help myself :). Maybe try a different version like 4.1 because 4.3 RC2 looks like has a lot of issues. |
Don't think that's it, Godot just basically checks if
You can build from source with this diff and see the output in console: diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp
index 5fd0039fb72..3c72c69b2b9 100644
--- a/platform/android/export/export_plugin.cpp
+++ b/platform/android/export/export_plugin.cpp
@@ -2215,10 +2215,13 @@ String EditorExportPlatformAndroid::get_apksigner_path(int p_target_sdk, bool p_
// we only check to see if it executes on export because it is slow to load
err = OS::get_singleton()->execute(apksigner_path, args, &output, &retval, false);
if (err || retval) {
+ print_line(vformat("'%s' failed with errors '%d' and '%d'.", apksigner_path, (int)err, retval));
failed = true;
} else {
break;
}
+ } else {
+ print_line(vformat("'%s' not found.", apksigner_path));
}
}
if (i == versions.size()) {
|
I need to clone the repo and compile it then build with changes ? |
Yeah |
What is the output of |
Sorry I'm late.
|
I can reproduce this issue on
The workaround that worked for me was launching Godot directly from the terminal.
This is the only way I could get it to sign my game's APK. |
Cool i will try it here and with other versions works on |
Don't know why I didn't thought about it earlier, but what output do you get when you open this project? |
same error |
This projects prints a number and an array to the console when you open it, what are the values? |
I replaced the Android SDK path in the script with the one on my local machine, and it printed 127 [""]. When I manually ran apksigner with the |
OK, I tested this again, but this time opening Godot from the terminal, and it printed |
I did this and observed the following output when running the built executable by double-clicking it (there are two results because I have two versions of build-tools installed):
Please note that Once again, running the executable from the terminal results on the export being signed successfully:
According to a comment to this post in Stack Overflow, 127 can be returned if a file does not have executable permissions. However, I confirmed that my apksigner file does indeed have executable permissions ( In my inexperienced opinion, since |
I was getting the same error. I checked the box "build with gradle", I have successfully built the apk. After that, I unchecked "build with gradle" and started the build again, and everything was successfully built without gradle. IMPORTANT: I already had gradle before installed because I was developing Android apps in Android studio and used gradle there |
I have the "failed to execute" error as well and running as admin works for windows. |
Tested versions
4.2.2(stable)
System information
Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04
Issue description
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.
All located 'apksigner' tools in /home/apollo/Android/Sdk/build-tools failed to execute
i followed the docs to export and debug my game on android but i get this error every time I'm trying to export for days now.
tried installing all version of build-tools and changing the keystore and some solutions out there but nothing works
Steps to reproduce
just exporting to android following the steps in the docs
Minimal reproduction project (MRP)
tried it with all my projects
The text was updated successfully, but these errors were encountered: