我一直在使用 google 和 blundell 的应用计费代码教程来研究应用计费代码中的地牢示例。除了更改公钥、重命名应用程序并将其上传到我已经完成的谷歌之外,这两个项目基本上都是开箱即用的。这两个应用程序最近(大约 3 天前)运行良好。现在我在 LogCat 和设备中都遇到了这个错误。
设备:
Error retrieving information from server. [DF-DFERH-01]
日志:
10-13 02:26:12.449: E/Volley(916): [90] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.com/fdfe/purchaseStatus
10-13 02:26:12.457: W/Finsky(916): [1] CheckoutPurchase.onErrorResponse: DisplayErrorMessage[Error retrieving information from server. [DF-DFERH-01]]
10-13 02:26:12.457: E/Finsky(916): [1] CheckoutPurchase.setError: type=UNKNOWN, code=-1, message=Error retrieving information from server. [DF-DFERH-01]
最佳答案
所以在联系 Android 支持后,我得到了答案。我还没有验证非静态测试是否有效。我会让大家知道的。
Comment #190 on issue 35564 by theother...@gmail.com: error (DF-DFERH-01) http://code.google.com/p/android/issues/detail?id=35564
Hi everyone. So I experienced the same problem testing the static responses these last few days. I decided to ignore them and go ahead and test real products (I was able to do this since my app already had live versions published, without In-app purchases of course). Testing real products did work however.
After reading the IAP Testing guide (http://developer.android.com/guide/google/play/billing/billing_testing.html#billing-testing-static) I came across a quote:
"Note: Making in-app billing requests with the reserved product IDs overrides the usual Google Play production system. When you send an in-app billing request for a reserved product ID, the quality of service will not be comparable to the production environment."
So it seems something is indeed wrong with the static response service, but this does not reflect the conditions of the actual Play Store. I can vouch for this because my now updated and live App has IAP working without problems. So if you're having this problem, test real products if you can; it will probably work for you.
关于java - 应用内计费给我错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12871929/