使用来自 Visual Studio 的 Google Play 商店签名总是收到 'invalid client' 错误 (Xamarin)

Always receive 'invalid client' error using Google Play Store signing from Visual Studio (Xamarin)

我已经使用来自 Visual Studio 的临时分发将我的 .aab 文件上传到 Google Play 控制台,之前使用 Xamarin 构建的 Android 应用没有问题。但是,每当我尝试从 Visual Studio 中使用 Google Play Signing 时,它都会失败。我在 Google Developer Console 中创建了客户端 ID。我正在使用发布指纹中的客户端 ID,但每当我尝试用它签名时,我都会收到错误消息:

Google Play 商店:授权 错误:“invalid_client”,说明:“未经授权”,URI:“”

我看到的问题之一是 Visual Studio 要求提供“客户端密码”和客户端 ID。但是,我无法使用 Google Developer Console 生成客户端密码,只能生成客户端 ID。我尝试从开发人员控制台下载客户端机密 json 文件,但似乎缺少包含机密的实际行。

我如何让它工作?

发现在Visual Studio中无法使用此功能,这里是MSFT的回答:

As the OAuth document described, the client_secret is not applicable to requests from clients registered as Android, iOS, or Chrome applications. So when we select the "Application Type" to "Android" option, there will be no client_secret.

The Xamarin publishing document has not been updated for a long time, and is not applicable for current publish steps. To publish the Android application, please upload the apk to google play store manaually.