Error 400: redirect_uri_mismatch when distributing Android app

Stesvis 1,041 Reputation points
2021-01-27T16:48:10.417+00:00

I am trying to deploy a new app to GooglePlay from Visual Studio 2019 (Archive->Distribute->GooglePlay), but when I am at the point where I have to Register Google API Access....
60959-image.png

I follow all the instructions, generate client id and secret and click Register, I always get this error from Google:

Error 400: redirect_uri_mismatch
The redirect URI in the request, http://localhost:61682/authorize/, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/${your_client_id}?project=${your_project_number}

I think that the main problem is that when i go to the google play console i don't see any "Create new project" button or link under API Access...
All I have is an existing project (Linked Google Cloud project but it's linked to another app...)

61072-image.png

Thanks!

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
{count} vote