Password verification failed while generating signed bundle for my android app

Viewed 665

Now I need to enter key store password and key password every time I generate a signed bundle even with a checked "Remember passwords". It seems to appear with my new configuration of Android Studio 4.2 and Gradle 4.2.0

With the remembered passwords, I now got as the result of generating bundle "Password verification failed" With re-entering the passwords, the generation goes fine.

What went wrong ?

Update : new version 4.2.1 of Android Studio. Still I can't build two releases in a row :

21:29   Executing tasks: [:app:bundleRelease] in project D:\Android Studio Projects\Acme

21:30   Gradle build finished in 52 s 8 ms

21:30   Generate Signed Bundle
            App bundle(s) generated successfully for module 'Acme.app' with 1 build variant:
            Build variant 'release': locate or analyze the app bundle.

21:30   Executing tasks: [:app:bundleRelease] in project D:\Android Studio Projects\Acme

21:31   Gradle build failed in 34 s 262 ms

21:31   Generate Signed Bundle: Errors while building Bundle file. You can find the errors in the 'Messages' view.

Execution failed for task ':app:signReleaseBundle'. A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable Failed to read key acme_alias_name from store "D:\Android Studio Projects\acme\app\my-release-key.keystore": Keystore was tampered with, or password was incorrect

3 Answers

It's a bug introduced in the last studio version. Worked fine for years, with this version after generating a signed APK changing projects or modules results in this error on the next APK generation. They're corrupting the passwords, it's nothing to do with the file name.

You have to change your keystore file name without any special characters and numbers because I also faced same problem, in my case my keystore file name with underscore, I removed the underscore and tried, apk was build successfully. Try this and let us know.

From my point of view, this issue is closed with Android Studio Artic Fox 2020.3.1 Patch 2 version

Related