Android在应用程序内结算:" RESULT_DEVELOPER_ERROR"

问题描述:

我无法理解为什么我得到一个RESULT_DEVELOPER_ERROR在我的执行的应用内计费。

I am unable to understand why i get a "RESULT_DEVELOPER_ERROR" in my implementation of "in-app billing".

我做了什么:

  • 副本code从示例应用程序,以我的应用程序
  • 在Android清单中包含了
  • 在谷歌宣布测试帐户的Andr​​oid 4.0.4下进场控制台Xoom的设备上,与谷歌Play应用版本3.5.19
  • 在我能够涂用成功的四个保留产品ID:android.test.purchased,android.test.canceled,android.test.refunded,android.test.item_unavailable
  • 在声明自己的产品ID
  • 在我的应用程序发布在谷歌播放

交流与谷歌游戏开始时是:

The begining of exchanges with Google Play is :

  • 从服务调用checkBillingSupported
  • 在获得onBillingSupported(真)的答案
  • 从服务调用restoreTransactions
  • 在获得onRestoreTransactionsResponse与响应codeequas 5(RESULT_DEVELOPER_ERROR)
  • 的UI说,这个版本的应用程序未配置为计费

然后我能够使用4保留产品ID?

Then I am able to use the 4 reserved product id ?

有什么我错过了什么?

该应用程序需要与您的生产骨干的的一个上传到谷歌播放应该是相同的版本,一个签署您测试时使用。

The app needs to be signed with your production key and the one uploaded to Google Play should be the same version as the one you are testing with.