Key storage problem for Android: "Keystore was changed or password was incorrect"

A few months ago, I generated a keystore for androids with this command:

keytool -genkey -v -keystore my-release-key.keystore -alias myalias -keyalg RSA -keysize 2048 -validity 10000 

I entered the password for the keystore and wrote it down in the last step, when it was time to enter the password for the certificate I entered in order to use the same password as the keystore (so I had to remember only one password for the whole process).

After creating this keystore, I signed up my apk for release with this command:

 jarsigner -verbose -keystore my-release-key.keystore my.apk myalias 

where I entered my password (no problem).

Now I need to press update on apk in the market, and when I try to sign a new apk using the command above, I get "Keystore was changed or the password was incorrect."

I am puzzled, I returned to the backup keystore, and I have the same problem. I am sure that the password is correct. Note that I do not use Eclipse for the process at all (I subscribe from the command line).

What could be the problem? Heeelppp !!

+4
android jar-signing
Feb 16 2018-12-12T00:
source share
4 answers

Sharing experiences with the community ...

JDK 1.7 build.gradle for android

 android { compileSdkVersion 18 buildToolsVersion "17.0.0" signingConfigs { release { storeFile file("../my-release.keystore") storePassword "$MakeMyDay!" keyAlias "my-release" keyPassword "$MakeMyDay!" } } : 

When I was about to collect the data, I received the error "incorrect or incorrect password."

Resolution:

Use a simpler password, for example abcdef. Not sure if special characters like $ and! were supported.

+3
Sep 27 '13 at 6:53 on
source share

This error happened to me because I had a comma in the name of my company, for example, "Company, Inc." The comma is removed and everything works fine. Hope this helps.

+2
Apr 03 2018-12-12T00:
source share

Implicit keyalg, digestalg and / or sigalg have changed between different versions of Java and possibly an eclipse.

Use the command line and try some combinations. This worked for me after creating the key using Java 5.0, but upgrading my system to Java 6 jarsigner -verbose -keystore <.keystore> -sigalg MD5withRSA -digestalg SHA1 <apk file> <alias>

0
Sep 04 '13 at 18:59
source share

This message indicates an incorrect password. It seems that you did not remember the password that you used for the keystore.

When creating a key and password, it is strongly recommended that you keep copies somewhere very secure, protected from forgetting, fire, disk failure, etc., because the consequences can be very serious (not being able to ever update the application on the market).

-four
Feb 16 2018-12-12T00:
source share



All Articles