When you build apk release using android studio, I get an error: "Keystore was changed or password was incorrect"

It's so weird, I created a keystore using Android Studio before. And my studio is a canary (1.4), I always update the studio. On the last day I get this error, I even downgraded my studio to a stable channel (1.3). But when I create using gradle on the command line , everything is fine. I am sure my password is correct.

Full error:

Error:Execution failed for task ':app:packageDevRelease'.

Failed to read the key ** from the repository "D: \ work \ app_proj \ Android \ jxj \ trunk \ JXJ \ app \ szyx.keystore": Keystore was damaged or the password was incorrect

+4
source share
3 answers

I fixed it! (for me at least)

I found that the problem is with the gradle plugin.

When i changed

dependencies {
    classpath 'com.android.tools.build:gradle:1.4.0-beta6'
}

to

dependencies {
    classpath 'com.android.tools.build:gradle:1.3.1'
}

in my build.gradle project, it fixed the problem.

Like the OP, I was able to sign assemblies created using the IDE's play button, but not only the ones I created using the option "Create signed APK ...".

After searching, I discovered this open problem .

+2
source

As the message indicates, this should either be incorrect or the keystore file has a data error.

-2
source

All Articles