How to Sign APK after Corrupt Keystore

JW 1 Reputation point
2022-02-16T20:38:43.027+00:00

I am using the latest version of Visual Studio and Xamarin Android.

The problem started when Visual Studio says that my keystore was corrupt. I had been signing the app for years until one day it just stopped. When I went into the directory, the keystore file was missing and the folder is completely empty now.

Google is supposed to have saved the private key. It says that the Google Play signing is "enabled" but how to I recreate the key settings in Xamarin?

175104-key.jpg

How do I create a new keystore for an ad hoc distribution?

On this page: https://play.google.com/console/about/keymanagement/ it says that Google can reset the upload key. Do I need to do that to get a new private key?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,338 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,951 Reputation points
    2022-02-17T05:50:11.367+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    It says that the Google Play signing is "enabled" but how to I recreate the key settings in Xamarin?

    Try to create a new key, and then ask your account owner to contact support to reset the key at: https://support.google.com/googleplay/android-developer/contact/key

    Here is the related doc, you could refer to the Lost or compromised upload key part:
    https://support.google.com/googleplay/android-developer/answer/9842756?hl=en&visit_id=637806736043324534-979155590&rd=1

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.