Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java.Lang.ClassNotFoundException: Didn't find class "com.android.billingclient.api.BillingClient" #598

Open
alberlevi98 opened this issue Mar 26, 2024 · 1 comment

Comments

@alberlevi98
Copy link

alberlevi98 commented Mar 26, 2024

While I am doing CrossInAppBilling.Current.ConnectAsync(); I am getting exception

Java.Lang.ClassNotFoundException: Didn't find class "com.android.billingclient.api.BillingClient

My target framework is : net7.0-android33.0

Nuget version : 7.0.5

@BioTurboNick
Copy link
Contributor

Good chance that Proguard/R8 is stripping it. Add these lines to your proguard.cfg file:

-keep class com.android.billingclient.api.** { *; }
-keep class com.android.vending.billing.**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants