I had built an android application in eclipse. I have stored the keystore and key alias after publishing it. Now I have imported it in Android Studio, updated the source code. And I want to publish the update on play store, but unfortunately it is not accepting. The message is :
Upload failed
You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate. Your existing APKs are signed with the certificate(s) with fingerprint(s):
[ SHA1: 01:C0:25:50:B5:86:5A:6F:E0:7D:67:4F:84:12:47:5F:3F:33:A2:51 ]
and the certificate(s) used to sign the APK you uploaded have fingerprint(s):
[ SHA1: CD:DE:F8:94:2C:EF:D7:DE:59:62:8E:63:B3:38:D5:32:1B:FF:37:A9 ]
Do I need to add the following code in my app module?
defaultConfig { ... }
signingConfigs {
release {
storeFile file("myreleasekey.keystore")
storePassword "password"
keyAlias "MyReleaseKey"
keyPassword "password"
}
}
Any help is really appreciated. Thanks