无法使用测试帐户进行 Android 应用内购买
我已经在我的应用程序中实现了应用程序内购买。我能够创建不同的应用内产品以及测试帐户。但是当我购买应用内产品时出现问题,它显示一条消息“找不到您尝试购买的商品”。但该商品已存在且具有确切的产品 ID。谁能帮助我吗?
I have implemented In-App purchase in my app. I am able to create different In-App products along with test accounts. But the problem occurs when I purchase In-App product, it shows a message "The item you were trying to purchase could not be found". But the item is existing with exact product id. Can anyone help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
购买的商品是否标记为已发布?如果不是,您可能会遇到该异常。
请查看 Google 文档。第 2 步讨论将项目标记为已发布。您还必须确保应用程序使用您的发布证书进行签名。
Is the purchase item marked as published? If it isn't you may get that exception.
Take a look at Google's documentation. Step 2 talks about marking items as published. You also have to ensure the application is signed with your release certificate.
尝试在没有测试帐户的情况下进行操作,它会带来最好的运气:)
try doing it without test account, it will work best luck :)