Apk build error please help

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 :
jarsigner error: java.security.SignatureException :Private key algorithm is not compatible with signature algorithm

who to solve this error

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

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