Key store - Android Studio

howto

#1

Text from subject line:

“Having error -( Error:Execution failed for task ‘:app:packageRelease’. > com.android.ide.common.signing.KeytoolException: Failed to read key keystore from store “E:\New folder\Work\android (2).keystore”: Keystore) while migrating project to android studio”

I made an app from appybuilder and published it on google play, now I want to release its update that I developed using android studio. Now, I am trying to sign my app with keystore that was generated by appybuilder, but I am having the error-

" Error:Execution failed for task ‘:app:packageRelease’.

com.android.ide.common.signing.KeytoolException: Failed to read key keystore from store “E:\New folder\Work\android (2).keystore”: Keystore was tampered with, or password was incorrect "

help me to fix this error.
I know I will not be able to publish its update without the sign of previous release.


How to convert .jks to .keystore
Problems with certificate during upload
#2

@priyanshu0ptl are you using same alias and password that was generated by AppyBuilder?


#3

I don’t know the password and alias what was generated by appybuilder


#4

how could I know the password and alias generated by appybuilder?


#5

For alias try “myAlias” and for password try “android” without quotes.


#6

Default
Keystore Password - android
Keystore Alias - androidkey


#7

Using AppToMarket, you can also change your alias and password:


#8

thanks for your answer, I give the password and alias as you said. but now it is giving a different error as:

 Error:Execution failed for task ':app:packageRelease'.

com.android.ide.common.signing.KeytoolException: Failed to read key androidkey from store “E:\New folder\Work\android (2).keystore”: Cannot recover key


#9

should be android.keystore


#10

my keystore file is named as “android (2).keystore”


#11

Then rename your keystore :slight_smile:


#12

sir I have already tried this

Execution failed for task ':app:packageRelease'.

com.android.ide.common.signing.KeytoolException: Failed to read key androidkey from store “E:\New folder\Work\android.keystore”: Cannot recover key


#13

I solved this by entering values

key store password - android

alias - androidkey

key password - android

thanks


How does the keystore works?
#14

This download link is not work properly


#15

I use KeyStore Explorer https://keystore-explorer.org/
after i create keystore and upload appybuilder server the my app is not compile.
I can not use AppToMarket. I see an error.


#16

File should be named: android.keystore

and it should contain these
Default Keystore Password - android
Default Keystore Alias - androidkey
Default Key Password - android

If it doesn’t, it will not work.

/Boban


#17

Keystore file C:\tools\AppToMarket_v32\myKeystores\myks.ks this location is empty and i have no myks.ks file.


#18

May I ask why do you want to upload a new keystore file to Appybuilder.

/Boban


#19

just personal experience.


#20

Answer

Regarding AppToMarket you have answered your question yourself.

/Boban