I couldn’t sing the App here is the Error “jarsigner: unable to open jar file: HelloCordova-release-unsigned.apk”
F:\mobile\moto>jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -
my-release-key.keystore HelloCordova-release-unsigned.apk alias_name
Enter Passphrase for keystore:
jarsigner: unable to open jar file: HelloCordova-release-unsigned.apk
Are you running the command from the directory that your APK is in?
If not, you need to supply the path to the APK file in your command. Example:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -
my-release-key.keystore F:\mobile\moto\whatever_the_path_is_to_your_apk_file\HelloCordova-release-unsigned.apk alias_name
Or you can use the cordova CLI to create a release build automatically including the signature.
May be I’m doing in a stupid way, I’m new to this. I tried this way but it did not work.
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore :\platforms\android\build\outputs\apk\android-release-unsigned.apk alias_name
And the error shows
jarsigner: unable to open jar file: :platformsandroidbuildoutputsapkandroid-release-unsigned.apk
I’m using mac
That path can’t be right? :\platforms\android\build\outputs\apk\android-release-unsigned.apk alias_name starts with a “:” but not with a drive letter?
What would probably work is “platforms\android\build\outputs\apk\android-release-unsigned.apk alias_name” (relative path) in your project’s root folder.