Apk build error please help


#1

i am getting the following error when i try to build signed apk by this command
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.jks android-release-unsigned.apk my-alias

error :
updating : MATA-INF/MANIGEST.MF
jarsigner error: java.security.SignatureException :Private key algorithm is not compatible with signature algorithm

who to solve this error


#2

You should use Android studio to generate signed APKs. https://developer.android.com/studio/publish/app-signing.html


#3

Saw the error message. I think that your signature isn’t compatible with your algorithm RSA. try to use another key with keytool command
Please check this tuto https://ionicframework.com/docs/v1/guide/publishing.html