android - 为什么我在连接 BillingClient 时收到 DEVELOPER_ERROR 响应代码?
问题描述
/**
* Invalid arguments provided to the API. This error can also indicate that the application was
* not correctly signed or properly set up for In-app Billing in Google Play, or does not have
* the necessary permissions in its manifest
*/
int DEVELOPER_ERROR = 5;
我正在使用 Google Play 签名 - 所以我上传 App Bundle 以进行发布。我想知道这是否有某种关系?(因为 Google Play 在其后端使用自己的签名密钥而不是本地密钥)
我的清单中有 com.android.vending.BILLING 权限,并且我能够成功地使用“测试卡”进行调试构建。我只是通过我记录失败事件的 Bugsnag 报告才注意到这个问题。
有谁知道为什么会这样?
解决方案
In the Google Cloud Console, you need to configure the API credentials to whitelist your package name and the certificate. The certificate is the one that is listed as "App Signing certificate" in the "App Signing" page in the Play Console.
推荐阅读
- css - 是
- java - 如何从参数化构造函数中获取数据?
- python - 尝试抓取任何地方或餐厅的谷歌首页地址但不走运
- wpf - 根据屏幕分辨率自动调整 Windows 应用程序屏幕大小
- c# - 为什么我的 do-while 循环中的 continue 关键字不起作用?
- spring - 将缺少的 URI 变量映射到请求映射
- python - 哪个是再训练 YOLO 神经网络的可取策略?
- python-3.x - django.core.exceptions.ImproperlyConfigured:应用程序标签不是唯一的,重复:帐户
- maven - 如何在构建期间要求 IntelliJ 强制下载 maven 依赖项?
- azure - 无法在 SSDT Visual Studio 2017 中导入 SSIS 包