I am running this command:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name
how do i fix this ?
I am running this command:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name
how do i fix this ?
The problem is probably that your unsigned APK and keystore are not located in the same folder.
You'll need to know the path to both the unsigned APK and the keystore from previos step. I recommend moving them into the same directory so the command is easier to type.
Instead of android-release-unsigned.apk you should use name of your app like this NameOfMyApp.apk
Whole command should look like this:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore NameOfMyApp.keystore NameOfMyApp.apk NameOfMyApp
This will work only if you have your NameOfMyApp.keystore
More about this at Chapter 6: Publishing your app
The solution to this is uninstalling and reinstalling the JDK.
I followed this:
https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html