Android In-App Billing v3: “Can't perform operation: queryInventory”

后端 未结 11 2333
野趣味
野趣味 2021-01-31 09:15

I have setup In-App Billing for the first time using the new v3 API. It is working correctly on my devices but I have received a lot of error reports from other users.

O

11条回答
  •  你的背包
    2021-01-31 09:48

    I'm getting that EXACT same error with pretty-much the exact same code.

    Only seems to be happening on certain handsets (actually, it seems almost exclusively the Acer Iconia Tablet in recent error reports!!) - and I am handling onActivityResult...

    There are a number of errors in the Google v3 Billing Sample which can cause ANRs/FCs - I suspect this is just another one (shoddy code and shoddy docs are becoming a Google trademark - sadly).

    My guess is - for now - that we need to allow for either mHelper or mGotInventoryListener being null and just disable In-App Billing in that case (as if result.isSuccess() was false, basically)

    p.s. editted to add - it could just be that the user has an out-of-date version of the Play Store - that only auto-updates if they allow it to run!?

提交回复
热议问题