Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/200.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android应用内计费:消费sku Android.test.purchased时出错(响应:5:开发者错误)_Android_In App Purchase_In App Billing - Fatal编程技术网

Android应用内计费:消费sku Android.test.purchased时出错(响应:5:开发者错误)

Android应用内计费:消费sku Android.test.purchased时出错(响应:5:开发者错误),android,in-app-purchase,in-app-billing,Android,In App Purchase,In App Billing,我已通过standard helper发送了测试购买意向: String SKU = "android.test.purchased"; mHelper.launchPurchaseFlow(this, SKU, 10001, mPurchaseFinishedListener); 购买成功,但当我尝试使用以下工具消费购买的物品时: mHelper.consumeAsync(inv.getPurchase(SKU), mConsumeFinishedListener); 我得到以下错误: E

我已通过standard helper发送了测试购买意向:

String SKU = "android.test.purchased";
mHelper.launchPurchaseFlow(this, SKU, 10001, mPurchaseFinishedListener);
购买成功,但当我尝试使用以下工具消费购买的物品时:

mHelper.consumeAsync(inv.getPurchase(SKU), mConsumeFinishedListener);
我得到以下错误:

Error while consuming: IabResult: Error consuming sku android.test.purchased (response: 5:Developer Error)
  • 我已经创建了一个签名为apk的游戏商店,并上传到开发者控制台
  • 我已经在开发控制台中设置了一个测试项
  • 我已经实现了onActivityResult

我遗漏了什么吗?

从2013/03/08到现在,我都犯了同样的错误。08年3月之前,使用android.test.purchased可以正常工作。我观察到这个产品id,它似乎会在一段时间内自动清除

编辑 匿名用户添加了以下内容:

问题是:

首先在google play store的alpha或beta版上发布应用程序

如果您发布应用程序,并且apk仅在“alpha测试”部分中,则它不可供一般公众使用,仅适用于alpha部分中激活的测试人员

编辑:另一个注意事项:“正常”使用将无法在Google Play上找到您的应用程序,但激活的测试仪也无法使用搜索框找到应用程序

只有到应用程序包的直接链接才能工作。(仅适用于激活的测试仪)。

这里也一样。我已经测试了应用内计费,效果很好,但几天前,每次尝试消费一个项目时,它都会出现“开发者错误”。采购运作良好。有什么想法吗?