Android Studio Error 2022 – Android Studio. Building signed APK. Get Key Failed

Error Question : Android Studio. Building signed APK. Get Key Failed

Solution 1:

I’ve been building release versions of my app for months, and now all of a sudden I get this error.
Failed to read key ******** from store ***** Get Key Failed. Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
This is beyond frustrating.

<img fetchpriority=

What I’ve done so far

  1. Read every post on this error and tried every solution
  2. Verified my passwords are correct
  3. Checked and unchecked “save passwords”
  4. Verified my keystore location is correct

Solution 2:

If you get error like block not properly paddedbad key or PKCS12 when signing the App Bundle or APK, try using the same password for the key and the keystore file, it works for me.

Solution 3:

Recently, Android Studio started to show a message: “Warning: Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified -keypass value. in Android Studio” – so, first of all, store and key passwords should be the same, like other people said.

Besides, after getting this error even using the same password, I realized that we can’t use characters like @ or $ on the passwords.

Additional Reading

Android Game App

If you found this post useful, don’t forget to share this with your friends, and if you have any query feel free to comment it in the comment section.

Thank you 🙂 Keep Learning !



Hey, I'm Deepika a professional blogger and Experienced in Mobile app developer (Flutter, Android and iOS) Technically sound Post graduated M.Tech in Computer Science and Engineering. I Love to gain every type of knowledge that's why i have done many courses in different fields like engineering and technology. Skilled in Java, HTML, CSS,Bootstrap,j query PHP, Python, SQL, C, C++,Firebase,MySQL,SQLite,JavaScript. Also I have learned Networking.


Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *