Android 应用内结算项目不可用
我正在 Android 中实现应用内计费,这让我很头疼。
当我尝试从应用内商店购买产品时,突然出现:“商品不可用”,
但如果我尝试 android_test_purchased
一切都会顺利。
我列出了“所有”导致此问题的可能原因并检查了每一个。
列表如下:
在
Security.java
中,公钥应与设备中 Market 应用程序的版本应为
2.3.4
或更高版本您用于测试的设备必须运行标准版本的
Android 1.6
或更高版本正在测试的应用程序必须以
草稿
的形式上传到Android市场,并且必须经过签名设备中安装的应用程序必须与以草稿形式上传到市场的应用程序相同
- < p>设备必须具有
[email protected]
帐户作为其主帐户,并且此帐户应定义为 Android 市场中的测试帐户 产品对于 Android 市场中的应用内结算,必须具有与显示的 ID 相同的 ID应用
Android 市场中的应用内产品必须已发布
任何对此列表的建议和修改我们非常感激。
谢谢
I'm implementing in-app billing in Android and it's giving me headaches.
When I try to buy my products from the in-app store, bang: "Item unavailable",
but if I try the android_test_purchased
everything goes fine.
I made a list with 'all' the possible causes for this problem and checked each one.
Here is the list:
in
Security.java
, the public key should be same as the one in the Android Market accountthe version of the Market application in the Device should be
2.3.4
or higherthe device you use for testing must run a standard version of the
Android 1.6
or laterthe application being tested must be uploaded as
draft
, in the Android market, and must be signedthe application installed in the device must be the same as the one that was uploaded as draft to the market
the device must have a
[email protected]
account as its primary account and this account should be defined as a test account in the Android marketthe products for in-app billing in the Android market must have the same IDs as the ones displayed in the application
the in-app products in the Android market must be published
Any suggestion and modification to this list is well appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我还想提的一点是
您用于测试购买的帐户必须在您的市场帐户中作为测试帐户提及
one more point I like to mention is
The account u are using for test purchases must b mentioned as a test account in your market account
我遇到了同样的问题。解决方案是等待,需要几个小时,也许一天,直到未发布的应用程序中已发布的项目变为“在线”。
I've ran into same issue. Solution was to wait, it take several hours, perhaps one day, until published items in unpublished app become "online".
我可能也有同样的问题。似乎存在一个已知问题,即 8 月 1 日之后创建的测试帐户无法正常工作。
请参阅帮助页面中的已知购买问题
不过,当这个问题得到解决时,没有任何地方提及。
I might have the same problem. There seems to be a known issue that test accounts created after August 1st is not working.
See Known Purchasing issues from Help pages
No mention anywhere when this is resolved though..