0

I tried to sign my APK, using:

keytool -genkey -v -keystore my-release-key.keystore

and

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore ~/Downloads/android-release-unsigned.apk nickname

But it failed with:

jarsigner error: java.lang.RuntimeException: keystore load: Keystore was tampered with, or password was incorrect

user6039980
  • 3,108
  • 8
  • 31
  • 57
  • Possible duplicate of [jarsigner error: java.lang.RuntimeException: keystore load: Keystore was tampered with, or password was incorrect](http://stackoverflow.com/questions/10887127/jarsigner-error-java-lang-runtimeexception-keystore-load-keystore-was-tampere) – Asim K T May 31 '16 at 12:44
  • 1
    Possible duplicate of [keytool error Keystore was tampered with, or password was incorrect](http://stackoverflow.com/questions/16891182/keytool-error-keystore-was-tampered-with-or-password-was-incorrect) – Gustavo Morales May 31 '16 at 13:11
  • I solved my problem, the following link has some answers that helped me: http://stackoverflow.com/questions/26449512/how-to-create-signed-apk-file-using-cordova-command-line-interface – user6039980 Jun 01 '16 at 00:24

2 Answers2

2

Go to Build>Generate Signed APK>Next (module selected would be your module , most often called "app") also Check Following link

Sign Your App

mdDroid
  • 3,135
  • 2
  • 22
  • 34
1

You can sign using Android Studio. If you need a release build then change the build type to release and then go to Build>Generate signed apk. Add the necessary details and your apk will be generated along with your keystore file. For more details please visit Android Developer Site.

If you are using eclipse you may visit This So post.

Community
  • 1
  • 1
Anirudh Sharma
  • 7,968
  • 13
  • 40
  • 42