• Godot Help
  • Help Exporting to Android - Code Signing: 'apksigner' returned with error #1

Can someone please help guide me to correct this error when exporting to Android?

editor/editor_export.h:251 - Code Signing: 'apksigner' returned with error #1

I successfully exported once but now that I've updated my game it gives this error and I have no idea why. I think it may have something to do with running the sdkmanager command as explained here:
https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html

However, I downloaded and extracted the command line tools but I'm not sure how to actually use them, so I haven't run the code:
"sdkmanager --sdk_root=<android_sdk_path> "platform-tools" "build-tools;30.0.3" "platforms;android-31" "cmdline-tools;latest" "cmake;3.10.2.4988404" "ndk;21.4.7075529"
"
EDIT: When I try running the above with the correct sdk path in appdata it just says "Access Denied" even when i run it as administrator.

    Sabb editor/editor_export.h:251 - Code Signing: 'apksigner' returned with error #1

    I suggest doing an internet search on that error message, prefixed with "godot". There are articles with suggested solutions.

    I have not found a solution for that when I got so I used .aab.
    Perhaps you should too.

    I made the min sdk 21 and the max 33 also make it custom build and it will work