Hello, I want to run my project on my Android phone. I installed Android Studio and filled the required fields in the "editor settings". The result is the apksigner error 126. I didn't find the apksigner doc for error codes. According to a Stackoverflow post it is a problem with java. https://stackoverflow.com/questions/73092550/godot-apksigner-returned-with-error-126 But if I enter "java" in the command line I got the help file. I'm on Nixos Linux distribution. Maybe there are some users here.
NeoD Moreover, I don't know how are the settings in Godot, but are you sure to set the apksigner in the path ? (...\android\build-tools\xx.x.x\apksigner) and restart godot after ?
Hi. Did you restart Godot after having installed Java ?
Yes I checked these. But now it is solved. It is a problem on "exotic" Linux distros. The apksigner script shebang is an "Ubuntu-ism" that points to a location that doesn't exist in my distro. I have to change it to " #!/usr/bin/env bash " . Alternatively "#!/bin/sh" should works too.