'apksigner' return with error #2

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

Sorry for bad English.
I’m having an error when I’m trying to export my mobile game to apk(debug). The error I get is “ ‘apksigner’ return with error #2”. Any information or solution to this error is much appreciated.

:bust_in_silhouette: Reply From: decepticlown

Check your Android Sdk version. Currently it needs API 29.
Update sdk manager.
Check your JAVA Sdk version. It should be jdk8

I did it all, but it still doesn’t work.

Flaunic | 2021-09-26 09:06