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

后端 未结 14 2546
隐瞒了意图╮
隐瞒了意图╮ 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 04:51

    I got this error from wiping the Google Play cache. You have to reopen the Google Play app and accept the terms before it is functional for IAB again.

    0 讨论(0)
  • 2020-12-15 04:51

    Have come up with the solution.

    Try the below 3 steps:

    1. Clear the cache of GooglePlay app and Google Play services app.
    2. Remove IInAppBillingService.aidl file.
    3. Copy the above file again from sdk folder and paste it to the aidl folder in my app.

    This problem usually occurs when we copy the aidl file from one project to another project.

    0 讨论(0)
  • 2020-12-15 04:57

    IabHelper.java

    Intent serviceIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
    serviceIntent.setPackage("com.android.vending");
    

    It is an error if it is not possible to specify correctly the action and packageName to IInAppBillingService.aidl.

    0 讨论(0)
  • 2020-12-15 04:58

    I had exactly this error when I removed all Google accounts from phone (thus wipe fixes because after wipe you probably set up an account after phone rebooted).

    After I added an account I did not see this error.

    Related issue What are the possibilities to get this error code 3 in InApp purchase?.

    0 讨论(0)
  • 2020-12-15 04:59

    This is because the account which is currently logged in the device is not registered in Google Developer Console. TO resolve this problem, 1. Go to your Google Developer Consol 2. In Account Detail Tab, enter the email address(which is in device) in "Gmail accounts with testing access" and press the save button on the top.

    Thats it.

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

    Wipe helped me. Strange error.

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