The fingerprint you specified is already used by an Android OAuth2 client ID in this project or another project

后端 未结 1 519
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 09:28

I noticed my SHA1 number showing from the gradle view signing report in android studio was different from the one I had originally. I thought maybe it was from changing comp

相关标签:
1条回答
  • 2021-01-19 10:15

    I finally got a useful response from Google support through email, providing just a clue on how to start the recovery process:

    I understand you're receiving a Client ID error when trying to link your app to a Game Services project. This error message is displayed because your package ID and SHA1 are already in use by another Client ID.
    
    To resolve this issue, please use the steps below to delete the Client ID from your Google Developers Console (formerly Cloud Console).
    
    Important: Do not delete the Google Developers Console project before deleting the Client ID. If you’ve already deleted the project, you will need to undelete it from your Projects list.
    
    1. Use the following URL to access the project - https://console.developers.google.com/project/186639667931
    2. Select APIs & auth > Credentials
    3. Under “Client ID for Android application” click the “Delete” button.
    4. Try linking your app in the Play Console again. If you’re unable to view or undelete the project linked in step 1, please try accessing it while logged in with the primary email address on your Play developer account.
    

    There was no 'Client ID for Android application', but there was an 'OAuth Client' under 'OAuth 2.0 client IDs', so I deleted that. That still had an old SHA1 number as it wouldn't take my current one. So I wasn't really deleting something with my current number, but deleting this deleted the whole client and brought up a blank screen. Here there was a bit of a trap. I added my current SHA1 number to that screen, which it accepted. Now I was able to get a response from the Google Play site again from my app, although its response always was 'Cannot access services'.

    As it turns out, this screen was the default screen, which is 'Google Play Android Developer'. I'll have to research what this is for sometime, but what I needed to add a SHA1 to was my actual app name. I ultimately found buried in the dropdown list at the very top, next to 'Google APIs', among example apps I had downloaded and 'Google Play Android Developer'. I still couldn't add my current SHA1 to it until I went back and deleted the 'OAuth Client' from 'Google Play Android Developer'. This bought the same default screen back, so I went back to the dropdown, selected my app name, and then was able to finally add my current SHA1 back to it.

    So deleting a SHA1 appears not to be a permanent exile from Play Services, just the start of a tricky process to get it reestablished.

    0 讨论(0)
提交回复
热议问题