Skip to content

Xamarin.Android.Google.BillingClient Java.Lang.LinkageError #1355

@sleushunou

Description

@sleushunou

Android framework version

net9.0-android

Affected platform version

NET 9.0.310

Description

I see error on Sentry for users with Android <= 8.1

Java.Lang.LinkageError: no non-static method "Lcom/android/billingclient/api/QueryProductDetailsResult;.()V"
at JniMethodInfo InstanceMethods.GetMethodID(JniObjectReference, string, string)()
at JniMethodInfo JniType.GetConstructor(string)()
at JniMethodInfo JniInstanceMethods.GetConstructor(string)()
at void JniInstanceMethods.FinishCreateInstance(string, IJavaPeerable, JniArgumentValue*)()
at new Object()()
at new QueryProductDetailsResult()()
at Task BillingClient.QueryProductDetailsAsync(QueryProductDetailsParams)+(BillingResult r, IList s) => { }()
at void InternalProductDetailsResponseListener.OnProductDetailsResponse(BillingResult, QueryProductDetailsResult)()
at void IProductDetailsResponseListenerInvoker.n_OnProductDetailsResponse_Lcom_android_billingclient_api_BillingResult_Lcom_android_billingclient_api_QueryProductDetailsResult_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)()
at void JNINativeWrapper.Wrap_JniMarshal_PPLL_V(_JniMarshal_PPLL_V callback, IntPtr jnienv, IntPtr klazz, IntPtr p0, IntPtr p1)()

Steps to Reproduce

call service.BillingClient.QueryProductDetailsAsync

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions