-
Notifications
You must be signed in to change notification settings - Fork 530
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
Net7-android binding has ClassNotFoundException when trying to consume #8308
Comments
This feels more like a packaging issue than a binding issue, so I'm gonna pass it to Peppers/Dean first. https://nuget.info/packages/Envoc.Stripe.Terminal.Android/2.19.0 |
So, these files are not in the Do you need to just add
|
I don't think I need those in the public API and they required so much more fixing in the
|
I found the repo now: It looks like nothing sets |
I assumed this would pick up the <AndroidLibrary Include="@(_ResolvedAndroidMavenLibraries)" /> |
Doing a local test with: <ItemGroup>
<AndroidMavenLibrary Include="com.stripe:stripeterminal-internal-models" Version="2.18.1" Bind="False" />
<AndroidMavenLibrary Include="org.jetbrains.kotlin:kotlin-parcelize-runtime" Version="1.7.20" Bind="False" />
<AndroidMavenLibrary Include="org.jetbrains.kotlin:kotlin-android-extensions-runtime" Version="1.7.20" />
<AndroidMavenLibrary Include="com.squareup.wire:wire-runtime" Version="4.4.3" />
</ItemGroup> It would appear that it does pick up the |
@jpobst and they don't make it to the |
For my test case, the 3 (.NET: |
In fact, it does not work in .NET 8 P6, but it does work in P7, so I suspect it is probably this fix? |
Yeah, I initially was going to service this fix to .NET 7, but it caused other issues, ended up being two fixes:
If we don't find any further issues with these, maybe we could take them both back to .NET 7? For now as a workaround, you could do something like adding a And also set |
Can confirm that using the two workarounds allowed the additional
|
For now, I think we can close, as we have the two PRs that should fix this in .NET 8:
We'll consider backporting to .NET 7, so anyone upvote or comment if you run into this. It will help us know how important it is to backport these. Thanks! |
@svaldetero Hi, I wonder if you can help me with creating Stripe Terminal bindings for Xamarin Android (not Maui). I am having issues and would appreciate any tips / advice on hoe to get it working. I've created iOS version without any issues. I'm not as familiar with binding projects for Android though. Thanks in advance, if you can. |
@ggbtvs If you need the old framework bindings, I would check out this github: https://github.com/Square-Six/Xamarin.Stripe.Terminal.Android. I referenced it a lot when making mine. |
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 aFile -> New Maui Project
app causes the exceptionjava.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 thelibs
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
Envoc.Stripe.Terminal.Android
Com.Stripe.Stripeterminal.Terminal.IsInitialized;
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: