Reputation:
i m trying to generating keystore for updating my app. I have KeyStore Alias and KeyStore Password. I set my variable on bash_profile like this
alias apk='cd /Users/Arachana/Applications/drink-play/platforms/android/build/outputs/apk && cordova plugin rm cordoba-plugin-console ; cordova build --release android && jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name && cd /Users/Archana/Library/Android/sdk/build-tools/23.0.2 && ./zipalign -v 4 /Users/Archana/Applications/drink-play/platforms/android/build/outputs/apk/android-releas e-unsigned.apk /Users/Archana/Applications/drink-play/platforms/android/build/outputs/apk/Production.ap k'
and for key tool - keytool -genkey -v -keystore my-release-key.keystore -alias keystore123(alias_name) -keyalg RSA -keysize 2048 -validity 10000
and all this i hit command "apk" on terminal. It generating production.apk. but this generating apk is not correct for updating on beta testing its showing error
What i m doing error. Pls help me out. Advance Thanks
Upvotes: 1
Views: 1142
Reputation: 4565
Everytime you hit this command
it will generate new keystore. As @Bhupat Bheda and @Nikhil Sharma said, it is the signing issue. So, you must make sure to signing with the same keystore only if you want to update the previous version of .apk . My suggestion is to keep the keystore somewhere else in your computer drive and use that later to update the same app in the playstore.
Remove existing app and create new app with different id and app name in the playstore will solve your problem.
Upvotes: 0
Reputation: 603
This error is coming because your not signing your application with same certificate with you did earlier so check out once again that your signing with same certificate or not. THanks!
Upvotes: 0
Reputation: 1978
You need to create APK from same keystore which build previous version APK. You are making a APK from different keystore than previous.
Upvotes: 0