"apksigner" returned with error #2 when exporting for android

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

So I’m trying to export my game to android, but I get the error

“apksigner” returned with error #2

I have the keystore set up correctly. I am exporting for debug.

:bust_in_silhouette: Reply From: JorensM

Solved:

I had the wrong versions installed for the SDK downloads - I reinstalled them with the correct versions that are stated in the docs and it exports normally now

For me apksigner error #2 only while export selected dependencies at resource. Please help me

AkashAK | 2022-01-08 13:46