在应用内计费 - 物品要求无供应 [英] In-app Billing - Item requested not available for purchase

查看:260
本文介绍了在应用内计费 - 物品要求无供应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作学习应用内结算,但我有与谷歌的应用内结算例如,地牢一个问题。

I am working on learning in-app billing but I am having a problem with the google's in-app billing example, the Dungeon one.

我已经设置应用程序,添加我的公钥,并改变了API_VERSION 1在makeRequestBundle()。

I have already set up the application, added my public key, and changed the API_VERSION to 1 in the makeRequestBundle().

我已经出口,并签署了应用程序并将其上传到谷歌播放,并保存为一个带几张照片草案,并启动了APK。我还添加了两个sword_001和potion_001如发表在应用程序内购买!

I have already exported and signed the application and uploaded it onto Google Play and saved it as a draft with a few pictures and activated the apk. I also added both the sword_001 and potion_001 as published in-app purchases!

接下来,我安装了签署程序到我的电话,但是当我尝试购买无论是剑还是我得到一个项目不可用错误的药水您请求的产品暂无供应。我甚至尝试了不同的设备上,以确保它不是因为开发者不能购买自己的产品,我也得到了同样的信息在两台设备上。

Next I installed the signed app onto my phone but when I try to purchase either the sword or the potion I get an Item unavailable error "The item you requested is not available for purchase.". I even tried on a different device to make sure it wasn't because developer's can't purchase their own products, and I get the same message on both devices.

什么我错过了?

推荐答案

嗯,我发现了一个解决我的问题。我是不是能够得到谷歌的应用程序中购买例如工作,但我能得到这个的 InApp结算教程利用我在最初的帖子中提到的步骤工作。

Well I found a solution to my problem. I wasn't able to get Google's in app purchasing example to work but I was able to get this InApp Billing Tutorial to work using the steps I mentioned in my original post.

如果不出意外,这可能是有帮助的人看到了这一切需要做测试的应用内结算的例子之一的步骤。

If nothing else this may be helpful to someone to see all of the steps that need to be done to test one of the in-app billing examples.

这篇关于在应用内计费 - 物品要求无供应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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