I have generated an app bundle and published it in the play store successfully. Now I am trying to generate a signed apk(to test in device) and I am getting Password verification failed. I googled and tried every solutions found in stackoverflow, but nothing solved my problem. Then I tried generating a new keystore with new alias and passwords. Again I am getting same error for the new keystore also. I am using Android Studio 3.3, gradle 3.3.1.
![](../../users/profiles/4482052.webp)
- 1,874
- 3
- 15
- 30
-
You sure you are entering the right password ? – ADM Feb 08 '19 at 03:30
-
Yes. I am using the right password. – Suresh Kumar Feb 08 '19 at 03:32
-
Well then add some more info to your question . `build.gradle` and AS version you are using . Add only essentials So that someone can have a look at it . – ADM Feb 08 '19 at 03:34
-
Did you enable zipAligned true in gradle file? – Taseer Feb 08 '19 at 04:06
-
4Clean and Rebuild works and I don't know why. – Fung LAM Feb 12 '19 at 03:45
-
I also found that in Studio 4.2.1 it keeps appending the passwords in the dialog, so clearing the pwd fields and re-entering them seemed to work after a 'clean'. – Dave Hubbard May 20 '21 at 16:24
9 Answers
I was with the same problem.
Try to clean Project and then Rebuild Project!
It Solved my problem
![](../../users/profiles/7653793.webp)
- 456
- 3
- 5
-
6Sometimes I just forgot that this solution solved a huge amount of Android Studio "Errors" – BlaShadow May 05 '19 at 20:38
-
1
-
I ran into the same problem on upgrade to android studio 4.2.
The following steps solved the problem:
- Update gradle plugin to the latest
- Build -> Clean project
- File -> Invalidate caches / restart
- Build -> generate signed bundle / apk...
- Delete the existing pre-typed passwords, and type them again.
![](../../users/profiles/3787316.webp)
- 171
- 1
- 3
Updating the gradle to latest version solved the issue. I was having gradle 3.3.0, updating it to 3.3.1 solved the issue. Thought of sharing it as it may solve the issue for someone if they are facing the same problem.
![](../../users/profiles/4482052.webp)
- 1,874
- 3
- 15
- 30
I was also stuck with same problem. i was keeping the same password as keystore password I tried with other password and it worked.
Generate an upload key and keystore If you don't already have an upload key, which is useful when opting in to App signing by Google Play, you can generate one using Android Studio as follows:
1)In the menu bar, click Build > Build > Generate Signed Bundle/APK.
2)In the Generate Signed Bundle or APK dialog, select Android App Bundle or APK and click Next.
3)Below the field for Key store path, click Create new.
4)On the New Key Store window, provide the following information for your keystore and key,
5)Keystore
Key store path: Select the location where your keystore should be created.
Password: Create and confirm a secure password for your keystore.
6)Key
Alias: Enter an identifying name for your key.
Password: Create and confirm a secure password for your key. This should be different from the password you chose for your keystore.
Validity (years): Set the length of time in years that your key will be valid. Your key should be valid for at least 25 years, so you can sign app updates with the same key through the lifespan of your app.
Certificate: Enter some information about yourself for your certificate. This information is not displayed in your app, but is included in your certificate as part of the APK.
7)Once you complete the form, click OK.
8)If you would like to build and sign your app with your upload key, continue to the section about how to Sign your app with your upload key. If only want to generate the key and keystore, click Cancel.
![](../../users/profiles/12636455.webp)
- 53
- 7
If clean project does not work, manually delete the build folder inside the app folder and try.
![](../../users/profiles/1251750.webp)
- 307
- 3
- 10
I have the same problem, and it could be many things, one human error that was happening to me was this: I was copy and pasting the password from a string in java, and there is a special character in those passwords sometimes for example: "kw({{sa123$vn", so remember to remove the first the symbol
\
I tried multiple times until I got it.
![](../../users/profiles/4330343.webp)
- 145
- 11
Make sure your keyPassword and storePassword in build.gradle are not swapped.
Embarassing, but it was working in the Build>Generate Signed Bundle but not via the build.gradle so I ended up burning 30 minutes wondering why. Just making this comment in case it helps anyone else since I didn't see anyone mention it.
![](../../users/profiles/1301192.webp)
- 832
- 10
- 9
![](../../users/profiles/3122596.webp)
- 79
- 1
- 12
-
still getting problem click on Build Variants -> select app -> select debug to release – Imran khan Feb 08 '19 at 04:22