错误刷新iventory(查询项目的价格)。 (回应:6:错误) [英] Error refreshing iventory (querying prices of items). (response: 6:Error)

查看:279
本文介绍了错误刷新iventory(查询项目的价格)。 (回应:6:错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在面临完全一样的问题,因为

<一个href="http://stackoverflow.com/questions/15471131/in-app-billing-v3-unable-to-query-items-without-network-connection-or-in-airplan/15471951#15471951">In-app计费V3无法查询没有网络连接或在飞机/飞行模式项目

这并不总是发生。您需要将您的手机切换到飞行模式,或关闭wifi,等待几个小时,将只出现​​此问题。将显示以下错误消息。

  

无法查询iventory:IabResult:错误刷新iventory   (查询项目的价格)。 (回应:6:错误)

使用笔者建议

 名单,其中,字符串&GT; skulist =新的ArrayList&LT;字符串&GT;();
skulist.add(my_sku_name1);
skulist.add(my_sku_name2);
mHelper.queryInventoryAsync(真,skulist,mGotInventoryListener);
 

要解决的问题。

不过,它不为我工作。还是会出现同样的问题。

对这个问题的任何解决方法吗?谢谢你。

解决方案

由于杰里在他的意见建议,您可以解决此通过调用

  

mHelper.queryInventoryAsync(假,mGotInventoryListener);

而不是

  

mHelper.queryInventoryAsync(mGotInventoryListener);

我禁用了所有网络连接从我的设备(超过一天),并能可靠地再现/与单个参数的变化解决这个问题。貌似购买本身将被缓存较长(无限期?)通过比价格一样的SKU细节的应用内计费服务。

I'm facing exactly same problem as

In-app billing v3 unable to query items without network connection or in airplane/flight mode

It don't always occur. You need to switch your phone to airplane mode, or turn off wifi, wait for several hour, only the problem will occur. The following error message will be shown.

Failed to query iventory : IabResult: Error refreshing iventory (querying prices of items). (response: 6:Error)

Author suggested using

List<String> skulist = new ArrayList<String>();
skulist.add("my_sku_name1");
skulist.add("my_sku_name2");
mHelper.queryInventoryAsync(true, skulist, mGotInventoryListener);

to solve the problem.

However, it doesn't work for me. Same problem still occur.

Any workaround on this problem? Thanks.

解决方案

As Jerry suggested in his comment, you can work around this by calling

mHelper.queryInventoryAsync(false, mGotInventoryListener);

instead of

mHelper.queryInventoryAsync(mGotInventoryListener);

I have disabled all network connectivity from my device (for over a day) and can reliably reproduce/fix the issue with that single parameter change. Looks like the purchase itself will be cached for longer (indefinitely?) by the in-app billing service than the sku details like price.

这篇关于错误刷新iventory(查询项目的价格)。 (回应:6:错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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