小编Jam*_*ler的帖子

错误 400:分发 Xamarin Forms 应用程序时 redirect_uri_mismatch

我正在尝试通过 Visual Studio 2019 中的 Google Play 商店分发我的 Xamarin Forms Android 应用程序。

我遵循 Microsoft 的本教程:https : //docs.microsoft.com/en-us/xamarin/android/deploy-test/publishing/publishing-to-google-play/?tabs= windows

我完成了设置 Google 开发者帐户以及在 Google 开发者控制台和 OAuth2 客户端中创建应用程序的步骤。

然后我在表单中输入了客户端 ID 和客户端密码并尝试注册。我看到了这个错误,而不是被转发到授权页面: 错误 400:redirect_uri_mismatch

不幸的是,我不能只将 uri 添加到 OAuth2 客户端,因为每次尝试注册按钮时端口都会更改。

那么,我该如何解决这个问题呢?我可以以某种方式修复 Visual Studio/Xamarin Forms 使用的端口吗?有完全不同的方法吗?

非常感谢您的帮助。

xamarin.android xamarin.forms google-play-developer-api google-developers-console visual-studio-2019

6
推荐指数
1
解决办法
654
查看次数