我在新的 android 项目中使用 Trivial_drive 代码并将 apk 文件上传到应用商店并在我的设备和模拟器中运行该项目,它工作正常。
但在像索尼 xperia m dual 这样的设备中它不起作用。
错误截图:
http://www.axgig.com/images/60177538539637605313.png
甚至在 genymotion 模拟器 2.3 和 4.2 版本上它也可以正常工作,但在 4.4.2 版本中它不起作用。
错误:
购买错误:Iabresult:IAB 结果中的空数据(响应:1002:收到错误响应)
这有什么问题?
请帮我
对不起我的英语不好
最佳答案
我看到的第一件事是您在模拟器上测试了应用内购买:
LINK: Here你会发现以下内容:
"After implementing the above changes, compile and run the application on a physical Android device (Google Play Billing cannot be tested within an emulator session) and make sure that the “In-app Billing is set up OK” message appears in the LogCat output panel. "
和at this LINK
Don't
1)Don't use emulator for testing its does not support Billing Services.
2)Don't use unsigned apk for Billing services.
3)Don't share your key with any one.
关于android - 应用内结算不适用于某些设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27269716/