问题描述
我将在android中实现应用帐单管理,我尝试了一个简单的示例应用程序,但是当我在设备上运行该应用程序时,会出现错误.
I am going to implement managed in app billing in android I have tried a trivial sample application but when I run the app on a device it gives me error.
我不知道我在做什么错以及为什么会发生此错误.
I don't understand what I am doing wrong and why this error occurred.
第一个显示弹出窗口
First display popup
当我单击确定"时,它会在日志中给我错误.
when I click OK than it give me error on log.
第二个显示弹出窗口
Second display popup
06-23 14:37:04.912: E/Trivial Drive(19340): **** Trivial Drive Error: Error purchasing: IabResult: User canceled. (response: -1005:User cancelled)
推荐答案
很简单: Google Play应用内购买测试不是那么直观.
要测试新的IAP,您应该上传应用的Beta版本(已实现所有逻辑)并注册一些测试帐户以下载该Beta版本并进行测试.
To test new IAPs you should upload a Beta version of your App (with all logic already implemented) and register some test accounts to download that Beta Version and test.
每次更改都应上传一个新的Beta版本,该错误将不再显示.
Every change you should upload a new Beta Version and the error wont appear anymore.
PS:为确保逻辑正常运行,您应该使用此处列出的测试帐单ID: https: //developer.android.com/google/play/billing/billing_testing.html
PS:To ensure the logic is working fine, you should use test billing IDs listed here: https://developer.android.com/google/play/billing/billing_testing.html
这篇关于在应用帐单中,android给出错误-1005?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!