IabResult: Billing service unavailable on device. (response: 3:Billing Unavailable)

后端 未结 14 2547
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 04:37

I\'m trying to use In-App billing:

mIabHelper = new IabHelper(this, BILLING_KEY);
        mIabHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {
         


        
相关标签:
14条回答
  • 2020-12-15 05:02

    This error indicates that you're connecting to the in-app billing service on your device, but that the service doesn't support IAB version 3. It may be that your device's version of Google Play only supports version 2 of IAB. What version of Google Play is running on your device?

    Is your version of Google Play otherwise functional (e.g., can you open the Google Play store)? Sometimes, if the date on your device is off, or there is some other problem, Google Play itself can go South.

    Finally, what's in your logcat output? It would be easier to provide assistance if you provided more detail.

    0 讨论(0)
  • 2020-12-15 05:08

    I had that same error and then noticed my phone was in Airplane Mode! Once connectivity was restored, I was good to go.

    0 讨论(0)
  • 2020-12-15 05:09

    I found a problem to fix, try root with ur LuckyPatcher, open config Toggles -> Disable billing.

    enter image description here

    0 讨论(0)
  • 2020-12-15 05:13

    The documentation for version 2.0 of the billing was actually more helpful than 3.0 for this one even though I'm using version 3.0 of the billing.

    Here's how 2.0 describes it Response Code 3:

    Indicates that In-app Billing is not available because the API_VERSION that you specified is not recognized by the Google Play application or the user is ineligible for in-app billing (for example, the user resides in a country that prohibits in-app purchases).

    For me I had to setup a test Google account on my phone first before testing. I forgot that step. Once I did that fixed it for me...

    Look for Server Response Codes here:

    http://developer.android.com/google/play/billing/v2/billing_reference.html

    http://developer.android.com/google/play/billing/billing_reference.html

    0 讨论(0)
  • 2020-12-15 05:14

    In my case I've set a different value for serviceIntent.setPackage("com.android.vending"); from IabHelper. Make sure you leave it with this value

    0 讨论(0)
  • 2020-12-15 05:16

    Had the same problem.

    My device was rooted and ROM'ed with an older version of Google Market which did not self-update. You can verify your the Market/Play version by looking at it in the AppManager.

    I actually decided to use another device, but I guess otherwise I would have to find a way to upgrade the Market/Play version.

    0 讨论(0)
提交回复
热议问题