Question

I recently updated an app to the market, I generated the keystore and the corresponding password. Now I updated the app and intend to update it on the market too, I have published QR Codes for the same in media and whilst I try to sign my new APK I keep on getting the error " Invalid keystore format" for the option of "Use existing Keystore". Unable to determine where I am going wrong.

Here is the screenshot:

Was it helpful?

Solution

Are you positive that you are opening the same keystore as before and using the right password? There may be a possibility that the keystore somehow got corrupted; perhaps you have a backup?

OTHER TIPS

I used unity to export the game to android studio. I had the same problem where it said invalid key format. I exported the project from unity once again to a different folder and used android studio to build it and generate a signed bundle. That solved the problem for me

The easiest way to sort this out is to go close your Android Studio then go to your Users Directory and Delete the .android Folder and Launch your Android Studio Again(Make sure you have an Internet connection, so that it can build properly)

simple solution: UPGRADE PLUGIN

You definitely need to create a new keystore file.
But you need to add some properties while creating the keystore file.

keytool -genkey -v -keystore C:/Users/Username/key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key

(For already existing KeyStore) Put your .jks file in your workspace and then right click on project > export >Android >Export Android Application >cilck on browser (select your project) >next >click on browser (give path of your .jks file from workspace where you placed it) >password >alias (select your alias from drop down) >password >finish

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top