'apksigner' return with error #2 when exporting android

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

I’m trying to export the debug apk for android and am getting this error.

I completed all the keystore fields following other answer’s suggestions.
I’m using openjdk 8 as suggested.
I have the latest version of android sdk.
I’m running Ubuntu 20

Any idea what could be happening?

:bust_in_silhouette: Reply From: lugraff

I used the same system and also had the error. My solution is to use the release keystore for the debug keystore. This works for me.