问题描述
我整合应用内结算在我的应用程序。但是,我在测试我的应用程序所面临的问题。每一次,我尝试在应用项目购买。一个有线的信息,那就您正试图购买该物品无法找到。在logcat中,出现了以下最高:
I am integrating in-app billing in my application. But, I'm facing issues in testing my app. Every time, I try to purchase an in app item. A wired message comes up The item you were attempting purchase could not be found. On Logcat, following appeared up:
09-10 14:45:02.437: E/IabHelper(12617): Launching buy intent for premium. Request code: 10001
09-10 14:45:02.523: E/Finsky(11260): [8464] FileBasedKeyValueStore.delete: Attempt to delete 'paramspXaplU_vTGhfGqvnmPPddQ' failed!
09-10 14:45:04.000: E/Volley(11260): [8448] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.com/fdfe/preparePurchase
我单击确定后,logcat的结果如下:
After I click OK, logcat showed the following:
09-10 14:45:05.546: E/TrivialDrive(12617): onActivityResult(10001,0,Intent { (has extras) }
09-10 14:45:05.546: E/IabHelper(12617): Ending async operation: launchPurchaseFlow
09-10 14:45:05.546: E/IabHelper(12617): Purchase canceled - Response: 2:Unknown
09-10 14:45:05.546: E/TrivialDrive(12617): Purchase finished: IabResult: User canceled. (response: -1005:User cancelled), purchase: null
09-10 14:45:05.546: E/TrivialDrive(12617): **** TrivialDrive Error: Error purchasing: IabResult: User canceled. (response: -1005:User cancelled)
我测试过下面的事情了无数次:
I had checked following things numerous times:
- 我注册了我的测试设备上有相同谷歌帐户,我已经设置为测试帐户。
- 所有应用产品我创建有效。
- 我上传的alpha通道,。
- 我已经验证的许可证密钥从开发者控制台我的申请。
- 有人建议一次重新启动我的设备。我这样做也。
- 我已经安装了我的设备在同一个APK,我已经上传到谷歌播放。两者都具有相同的证书签名。
- 需要提及的是,应该等待至少2到3个小时才能得到的apk认可。对我来说,它已经超过了15小时。
- 另外,我的测试帐户与商家帐户不同。
我修改了谷歌的样本以及创建了自己的样本。在这两种情况下,我面对同样的问题。
I modified the Google's sample as well as created my own sample. In both cases, I am facing same problem.
更新:我从我的客户端的开发者帐号测试IAB。我注意到她的商人的钱包帐户仍然没有验证。我不知道,如果这是这个问题的根源。
Update: I am testing IAB from my client's developer account. I noticed that her merchant wallet account is still not verified. I am not sure, if this is the root cause of this issue.
推荐答案
这个问题的原因是pretty哑,上传应用Alpha通道后,需要公布。我没有发布,因此它留在草稿模式。之后,我发表了应用程序,它的工作一个小时之内。
The cause of this problem was pretty dumb, after uploading app to alpha channel, it needs to published. I was not publishing it, so it remained in draft mode. After I published the app, it worked within an hour.
这篇关于Android的:问题与应用内结算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!