dotnet / dotnet/android-libraries

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

Open
#1,355 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
317
Forks
73
Avg merge
1d 8h
Merged PRs (30d)
17

Description

### 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

```shell

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.