question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No interface method getBuyIntentExtraParams - billing v1.0

See original GitHub issue

I would like to use the new Google play billing library com.android.billingclient:billing:1.0

But when I run:

final BillingFlowParams.Builder builder = BillingFlowParams.newBuilder()
        .setSku(sku)             
        .setType(BillingClient.SkuType.SUBS); 
int resultCode = mBillingClient.launchBillingFlow(activity, builder.build());

I’ve this issue :

Caused by: java.lang.NoSuchMethodError: No interface method getBuyIntentExtraParams(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle; in class Lcom/android/vending/billing/IInAppBillingService; or its super classes (declaration of 'com.android.vending.billing.IInAppBillingService' appears in /data/app/{MY_PAKAGE_NAME}-eHTcC-Sp4zY08KZcxkl7fQ==/base.apk:classes97.dex)

BillingClientImpl.java:332

Any ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
gm4scommented, Sep 27, 2017

Ok I found why. It’s not a problem with the Android build of the device. It’s because there already was an IInAppBillingService.aidl in our project. Once I removed it and clean the project everything is working properly.

0reactions
gorgoncommented, Sep 27, 2017

Yes, “Beta” doesn’t sound very official =)

Read more comments on GitHub >

github_iconTop Results From Across the Web

No interface method getBuyIntentExtraParams - billing v1.0 #86
I would like to use the new Google play billing library com.android.billingclient:billing:1.0 But when I run: final BillingFlowParams.
Read more >
Google Play Billing AIDL Reference - Android Developers
This method returns a RESULT_OK(0) of consumption succeeded, and appropriate response codes on failures. The getBuyIntentToReplaceSkus() method.
Read more >
Delphi Interface Performance Issue - Stack Overflow
Create('Note to self: Typo in the code'); QueryPerformanceCounter(v1); // APPROACH 1: NO INTERFACE (FAST!) // for i := 0 to high(MyObject.FArr) do //...
Read more >
Default interface methods - C# 8.0 draft specifications
Default interface methods enable an API author to add methods to an interface ... Instance auto-properties are not supported in interfaces, ...
Read more >
Object Interfaces - Manual - PHP
Object interfaces allow you to create code which specifies which methods a class must implement, without having to define how these methods are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found