Hello, I’m creating the apk by following Ionic Publish commands. While uploading apk I’m getting error:
Using commands:
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name
How can I add JAS_SIG, Need help.
Regards.
I think you forgot below command.
“zipalign -v 4 HelloWorld-release-unsigned.apk myapp.apk”
From above command, your issue will be overcome.
Note: Copy a “zipalign” file from “\Androidsdk\build-tools\25.0.3” and paste it where “my-release-key.keystore” file placed.
Here 25.0.3 is my android version.
after use zipalign command to build final signed apk.
Then upload myapp.apk file.
I already done that, by adding path and used :
zipalign -v 4 HelloWorld-release-unsigned.apk HelloWorld.apk
but no success
It appears that the APK you’re uploading does not contain any JAR signature files. .
Try producing a signed APK using apksigner
(https://developer.android.com/studio/command-line/apksigner.html ) which is the endorsed tool for creating signed APKs:
zipalign -v -p 4 HelloWorld-release-unsigned.apk HelloWorld.apk
apksigner sign --ks my-release-key.keystore HelloWorld.apk
gokujy
November 18, 2019, 2:28pm
5
If still error did’t solved, share all your cmd you tried