Skip to content

Net7-android binding has ClassNotFoundException when trying to consume #8308

@svaldetero-envoc

Description

@svaldetero-envoc

Android application type

.NET Android (net7.0-android, etc.)

Affected platform version

VS 17.6.3, net7.0-android

Description

I have a net7.0-android binding project created here: https://github.com/Envoc/envoc-stripe-binding/blob/android-2.19.0/src/StripeTerminal/Envoc.Stripe.Terminal.Android/Envoc.Stripe.Terminal.Android.csproj
With a nuget package here: https://www.nuget.org/packages/Envoc.Stripe.Terminal.Android.

Adding that nuget package and trying to consume the library via the line Com.Stripe.Stripeterminal.Terminal.IsInitialized; from a File -> New Maui Project app causes the exception java.lang.ClassNotFoundException: Didn't find class "com.stripe.jvmcore.logging.terminal.log.Log"

It looks like that class is in com.stripe_stripeterminal-internal-common.aar under the libs folder.

Android binding troubleshooting says to add a missing jar file, but this is a lib of an included aar. Is this a packaging issue?

Steps to Reproduce

  1. Create new Maui app
  2. Add nuget reference to Envoc.Stripe.Terminal.Android
  3. In the click me button add a call to the nuget like Com.Stripe.Stripeterminal.Terminal.IsInitialized;

Did you find any workaround?

No

Relevant log output

No response

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.needs-triageIssues that need to be assigned.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions