安卓IAB:"错误刷新库存(查询项目的价格)QUOT;开发者错误 [英] Android IAB: "Error refreshing inventory (querying prices of items)" Developer Error

查看:880
本文介绍了安卓IAB:"错误刷新库存(查询项目的价格)QUOT;开发者错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立的Andr​​oid应用程序中的计费V3,使用 IABHelper 类,并按照的example code 。我有它主要工作,一路过关斩将采购(含签署APK和真正的信用卡收费)。

不过,在测试过程中今天我开始了新的错误在我的 QueryInventoryFinishedListener queryInventoryAsync()方法:

  IABResult消息:错误刷新库存(查询项目的价格)
IABResult响应:5:开发者错误
 

奇怪的#1的是,这发生在 onIabSetupFinished()回调回报(与习惯万岁的消息)之后。奇怪的#2是我可以随后与放大器;成功地处理了在应用程序内购买(使用 launchPurchaseFlow()法)。

我发现了一个补丁<一个href="http://$c$c.google.com/p/marketbilling/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Google%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=101">here这解决了相同的症状我遇到,但它并没有为我工作。

我已经使用不同的设备,使用不同的Gmail账户,并从头开始构建一个新产品的尝试。我甚至收到错误的早期版本的我的应用程序能够正确运行(什么?!)。

我的问题是:为什么我不能查询产品库存,甚至在 IABHelper 已确认的设立是成功的?这可能是造成这个错误,我该如何解决?

感谢您的任何见解。

更新

我能得到库存查询交易被抛弃我测试用帐户,并切换到一个新的帐户重新工作。没有code修改。

我的初步结论是,东西被损坏了在我使用的用户帐户(?)。在测试过程中,我已经打硬pretty的有大量采购不同的应用内商品的 - 但我仍然需要找出发生了什么事,并确保这不会发生任何我的用户<。 / P>

请让我知道,如果您有任何这方面的经验。谢谢!

解决方案

我在我们的测试模式的应用程序中的一个有同样的问题

。后来,我的开发人员想通了这一点,他必须清除谷歌Play商店应用的缓存。

所以,你可以试试这个 -

  1. 转到您的设备的设置菜单。
  2. 进入应用程序(也可以被标记为应用程序管理器)。
  3. Tab键切换到所有应用程序。
  4. 搜索,打开谷歌Play商店应用。点击它,应用程序设置将显示
  5. 轻触清除数据和清除缓存。

现在返回到您的应用程序,并尝试加载库存。它解决了我的问题。

I've been setting up Android in app billing v3, using the IABHelper class, and following the example code provided by Google. I have it mostly working all the way through purchase (with signed apk and real credit card charge).

However, in the course of testing today I started to get a new error in my QueryInventoryFinishedListener from the queryInventoryAsync() method:

IABResult message: "Error refreshing inventory (querying prices of items)"
IABResult response: 5:Developer Error

Weird thing #1 is that this occurs after the onIabSetupFinished() callback returns (with the customary "Hooray" message). Weird thing #2 is that I can subsequently & successfully process an in app purchase (using the launchPurchaseFlow() method).

I found a patch here that addresses the same symptoms I'm experiencing, but it didn't work for me.

I've tried using different devices, using different gmail accounts, and building a new product from scratch. I even getting the error on earlier versions of my app that ran correctly (what?!).

My question is: Why can't I query the product inventory, even after IABHelper has confirmed the set up was successful? What could be causing this error, and how can I fix it?

Thank you for any insight.

UPDATE

I was able to get the inventory query transactions to work again by ditching the account I was testing with, and switching to a new account. No code change.

My tentative conclusion is that something got corrupted in the user account I was using (?). During testing, I had hit it pretty hard with a lot of purchases of different in-app products -- but I still need to find out what happened, and make sure this doesn't happen to any of my users.

Please let me know if you have any experience with this. Thanks!

解决方案

I had the same problem in one of our app under test mode. Later, my developer figured out that, he had to clear the Cache of the Google Play Store app.

So you can try this -

  1. Go your device's Settings menu.
  2. Go to Applications (may also be labeled Application Manager).
  3. Tab over to All Applications.
  4. Search for and open the Google Play Store app. Tap on it, application settings will show
  5. Tap on Clear Data and Clear Cache.

Now go back to your app and try to load inventory. It solved my problem.

这篇关于安卓IAB:&QUOT;错误刷新库存(查询项目的价格)QUOT;开发者错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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