gpt4 book ai didi

android - Google Play 警告 Google Play inApp 计费的错误实现

转载 作者:IT老高 更新时间:2023-10-28 23:13:14 31 4
gpt4 key购买 nike

我刚刚收到来自 Google Play 的以下电子邮件

'Hello Google Play Developer,

We detected that your app(s) listed at the end of this email are invoking the in-app billing service without setting a target package for the intent. This can enable a malicious package to bypass the Play store billing system and access items that have not been purchased.

Next Steps

If you are using IabHelper, please start using the latest SDK. If you are manually invoking the in-app billing service, make sure you are calling Intent.setPackage(“com.android.vending”) on any intents to "com.android.vending.billing.InAppBillingService.BIND". Sign in to your Developer Console and submit the updated version of your app. Check back after five hours - we’ll show a warning message if the app hasn’t been updated correctly.'

我不确定解决此问题的方法是什么。谁能告诉在哪里指定代码?它是在 Java Class 还是 Manifest 中的某个地方?

最佳答案

几天前我收到了同样的警告,并且已经为这样的 Intent 设置了包:

Intent serviceIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
serviceIntent.setPackage("com.android.vending");
bindService(serviceIntent, mServiceConn, Context.BIND_AUTO_CREATE);

通过更新到最新版本的 Google Play 服务并针对 Lollipop (5.1) 而不是 KitKat (4.4),问题已经消失...如果您使用任何 Google Play API,请确保将它们更新到最新版本版本,希望这也能为您解决问题。

关于android - Google Play 警告 Google Play inApp 计费的错误实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38642622/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com