Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Password verification failed while generating signed bundle for my android app

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

like image 506
C.B. Avatar asked May 10 '21 16:05

C.B.


1 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.

like image 59
Mike P 4 MPP Avatar answered Nov 15 '22 11:11

Mike P 4 MPP