Android的应用内计费版本3 - 项目不归 [英] Android In-app Billing Version 3 - ITEM NOT OWNED

查看:189
本文介绍了Android的应用内计费版本3 - 项目不归的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在面临一个问题,IAB V3,而购买的物品,请立即切断网络(或飞行模式。 之后再购买该项目它说:你已经拥有此项目 我试了很多事情:清楚谷歌播放缓存/强制关闭谷歌播放/强制关闭游戏/重启devcie /切换到另一个设备/等待一些日子,他们中的非正常工作。 我经历了互联网与谷歌,但没有similiar情况下......他们中的大多数是通过清除缓存解决或不叫消费......

I'm facing an issue with IAB V3, while purchasing the item, interrupt the network(or airplane mode immediately. after re-buy the item it said "you already owned this item" I tried many things: clear Google Play cache/force close Google Play/Force close the game/restart the devcie/switch to another device/wait for some days, non-of them work. I went through internet with Google but no similiar cases... Most of them are solved by clear cache or not call consume...

有时候,谷歌播放说出项目已经拥有了

Sometimes, Google Play say "Item Already Owned"

有时候,当查询我看到的项目,但是当我试图使用它,它返回错误8库存:项目不属于(回应:8:不是所有的项目)

Sometimes, when query the inventory I saw that item, but when I tried to consume it, it returned error 8: ITEM NOT OWNED.(response: 8:Item not owned)

这是真的吸,我不能买到该项目再次,除非使用另一个账户。

This is really suck and I cannot buy that item again unless use another account.

这个问题真的很难重现,但一旦它发生,你什么都做不了......

The issue is really hard to reproduce but once it's happen, you cannot do anything...

我不知道如何进行下一步调试。 我认为它可能属于谷歌LIB本身。 注:我的LIB code是pretty的一样TrivialDrive应用

I have no clue how to debug the next step. I think it maybe belong to Google lib itself. Note: My lib code is pretty same as TrivialDrive app.

感谢您的意见。

推荐答案

响应错误:7和响应错误:8已经拥有项目和已购买的项目时从谷歌播放服务。一旦购买流程结束我们需要消耗为以下方法

Response error : 7 and response error: 8 "Item already owned" and "Item already purchased" occurs from Google play service. Once the purchase flow is finished we need to consume as the following method.

mHelper.consumeAsync(inventory.getPurchase(SKU_GAS),mConsumeFinishedListener);

mHelper.consumeAsync(inventory.getPurchase(SKU_GAS), mConsumeFinishedListener);

但如果你已经购买了,如果你有这个问题,你需要清除谷歌播放服务缓存数据,然后用测试它消耗的异步

But if you already purchased and if you have this issue you need to clear the Google play services cache data and then test it using consume Async

这篇关于Android的应用内计费版本3 - 项目不归的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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