responseCode 4 of Google In-App Billing Library 1.0

删除回忆录丶 提交于 2019-12-12 15:15:49

问题


I'm programming in-app billing function in my app for ads free version by using google in-app billing library 1.0. And I've gone through all stages of here codelab until now. However, I alway meet this error and returned responseCode is 4 (= ITEM_UNAVAILABLE) at onPurchasesUpdated().

I had already registered my product item at google play console and activated it about 3 hours ago. Isn't it enough time? Or... are there any steps that I missed? Please let me know what is wrong? Thanks. :)


回答1:


Can you comply with the list?

  • Signing release apk with release keystore
  • Uploading the previously signed apk to at least alpha or beta google play
  • Starting purchase flow with the specific id that is already activated

If you want to make test(no pay) purchases you have to register your phone user and the user should be different from the one of the developer account.



来源:https://stackoverflow.com/questions/47307461/responsecode-4-of-google-in-app-billing-library-1-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!