1

I have developed an application few months ago by Android Studio and the operating system was windows and i did upload that application in play store that time. Now i have changed my operating system from windows to Ubuntu. Now when i am going to upload an update of that application, it's showing SHA-1 key is not matching. Now how can i replace my old SHA-1 key by new SHA-1 key for the application ? Help needed . upload error image

Simon
  • 67
  • 1
  • 8
  • 1
    you need to sign your new application with the same keystore used for the old version! – Pfennigbaum May 14 '18 at 12:37
  • Possible duplicate of [Can't upload updated APK to Google Play due to different certificate](https://stackoverflow.com/questions/26288234/cant-upload-updated-apk-to-google-play-due-to-different-certificate) – GAlexMES May 14 '18 at 12:40
  • Actually its an update of the older version of application and the "keypassword" is same as before. @Pfennigbaum – Simon May 14 '18 at 12:41
  • Did you in any case enabled the `Google Play App Signing`? If so, you need to make sure both the upload key (your key) and the app signing key (their key) are in the `Play Console`. Read here: https://developer.android.com/studio/publish/app-signing#google-play-app-signing – HedeH May 14 '18 at 12:43
  • you **must** use your old keystore **file** (except if you did enable Google Play App Signing like @HedShafran mentioned), just the same "keypassword" will not be enough – Pfennigbaum May 14 '18 at 12:47
  • well,suppose in case if i found the old sha-1 key then how i will replace it with my new sha-1 key ? – Simon May 14 '18 at 13:57

1 Answers1

1

You can't do anything .

Google says it clearly that the application is identified by the keys used to sign it.

Consequently if you've lost the keys, you need to create a new application.

sam
  • 1,112
  • 2
  • 17
  • 40
  • is there any sort of option to replace or restore the SHA-1 key? – Simon May 14 '18 at 12:49
  • @MohammadHelalUddin as i said you can't **do anything** you must keep your keys in safe place – sam May 14 '18 at 14:58
  • well, suppose in case if I find the old sha-1 key then how I will replace it with my new sha-1 key? @Sam Nikzad – Simon May 14 '18 at 19:23