0

I am running this command:

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name

but I get this error enter image description here

how do i fix this ?

noor
  • 651
  • 1
  • 8
  • 19

2 Answers2

0

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

Tomislav Stankovic
  • 3,080
  • 17
  • 35
  • 42
0

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

noor
  • 651
  • 1
  • 8
  • 19