Google Play警告不正确地执行Google Play inApp帐单 [英] Google Play Warning Incorrect Implementation of Google Play inApp Billing

查看:290
本文介绍了Google Play警告不正确地执行Google Play inApp帐单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I just received the following email from Google Play


'Google Play开发者好,

'Hello Google Play Developer,

我们检测到您在本电子邮件末尾列出的应用程序是
,无需为意图设置目标包
,即可调用应用内结算服务。这可以使恶意软件包绕过Play
商店计费系统并访问尚未购买的商品。

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.

后续步骤

如果您使用的是IabHelper,请开始使用最新的SDK。如果您
手动调用应用内结算服务,请确保您
调用Intent.setPackage(com.android.vending)任何意图
com.android。 vending.billing.InAppBillingService.BIND。登录到开发者控制台的
并提交应用的更新版本。
五小时后再回来查看 - 如果应用程序
没有正确更新,我们会显示一条警告消息。'

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中的某处?

I am not sure what is the fix for this problem. Can anyone tell where to specify the code? Is it somewhere in Java Class or the Manifest?

推荐答案

几天前我收到相同的警告,对于像这样的意图:

I received the same warning a few days ago and was already setting the package for the intent like this:

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 Apis,请确保将它们更新为最新版本,并希望能够为您解决它。

The issue has gone away by updating to the latest versions of Google Play Services and targeting Lollipop (5.1) instead of KitKat (4.4)... if you're using any Google Play Apis make sure you update them to the newest versions and hopefully that'll fix it for you too.

这篇关于Google Play警告不正确地执行Google Play inApp帐单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆