Exporting to android, builds with warning and the apk does not work

Godot Version

4.3 dev 6

Question

I have done almost exactly what the godot documentation says.
“Almost” because:

  1. well now there is Koala, not Iguana! The page refers to Iguana but if you click the link given, now sdk is called Koala and nothing can be done.
  2. Also, one of the packets required simply does not exist anymore, even in the obsolete ones. I’m talking about Android SDK Platform-tools. It’s the version 35 that you get in Koala and that’s it. You can’t get 34 as required in the godot documentation page Exporting for Android — Godot Engine (stable) documentation in English
  3. the page also asks you to check that CMake version 3.10.2.4988404 and NDK version r23c (23.2.8568313) are “installed and configured”.
    They are installed indeed, as every othere package (with the exception above), but I have no clue on how “configured” should be done, the given link (Installare e configurare NDK e CMake  |  Android Studio  |  Android Developers) is not clear at all for me. I read but don’t understand what I should be doing, it’s as if it was written in an unknown language…

So uh, I try anyway.

And it exports with warnings:
“All located ‘apksigner’ tools in C:\Users\boris\android_sdk/build-tools failed to execute”

But still, it’s only a warning, should work right? Nope. First of all, it lacks signature, so my mobile complains, but whatever. I tell it to go on anyway, but:

“app not installed as package appears to be invalid”

I have watched plenty of videos on how to do this, all of them are somewhat updated (none mentions Koala, just to say) and I have to admit that I am quite disturbed by the need for EXACT match of a LOT of stuff or it does not work. Where is the problem, Android or Godot? Things should be easier these days.

But again, whatever. The issue remains. Anyone can figure out how solve it?!

Oh, btw, the “project” is simply a label and an access to the gyroscope. It works on godot on my pc, so no the problem is not that the code is buggy.

3 Likes

I have been running into the same issue, after following the exact steps you did and coming up with the exact same outcome of warning and package invalid on mobile. I hope some more people run into this issue so we can actually figure out a solution.