I've been setting up Android in app billing v3, using the IABHelper class, and following the example code provided by Google. I have it mostly working all the way through purchase (with signed apk and real credit card charge).

However, in the course of testing today I started to get a new error in my QueryInventoryFinishedListener from the queryInventoryAsync() method:

IABResult message: "Error refreshing inventory (querying prices of items)"
IABResult response: 5:Developer Error

Weird thing #1 is that this occurs after the onIabSetupFinished() callback returns (with the customary "Hooray" message). Weird thing #2 is that I can subsequently & successfully process an in app purchase (using the launchPurchaseFlow() method).

I found a patch here that addresses the same symptoms I'm experiencing, but it didn't work for me.

I've tried using different devices, using different gmail accounts, and building a new product from scratch. I even getting the error on earlier versions of my app that ran correctly (what?!).

My question is: Why can't I query the product inventory, even after IABHelper has confirmed the set up was successful? What could be causing this error, and how can I fix it?

Thank you for any insight.

UPDATE

I was able to get the inventory query transactions to work again by ditching the account I was testing with, and switching to a new account. No code change.

My tentative conclusion is that something got corrupted in the user account I was using (?)

Edit
Report