-
Notifications
You must be signed in to change notification settings - Fork 526
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
Android Binding didnt work on Maui #9263
Comments
Can you provide the errors you are seeing? |
Hey @jpobst the full log is attached on the repo linked. But we have here too
|
Hmm, I haven't seen that error message before, but my guess is that the Java binaries are not making it into your final application. You might need to add one of these for <DllFiles_net80_Android Include="bin\Release\net8.0-android\*.dll" />
<AarFiles_net80_Android Include="bin\Release\net8.0-android\*.aar" /> Also, you might want to switch to using the NuGet packages we maintain for your dependencies: https://www.nuget.org/packages/Xamarin.Kotlin.Reflect |
I didn’t include the .jar file because the binding doesn’t generate one. Regarding the packages, I tried using the latest versions, but without success. I’m using these packages to demonstrate the binding working in Forms but not in MAUI. |
Description
Hey everyone,
I recently ported my Xamarin.Forms app to .NET MAUI, which required updating some private bindings I had created. One of these bindings is for a library that provides extensive information about the phone. However, when I run the app on .NET MAUI, I encounter errors, and it just doesn’t work as expected. I’ve tried updating the dependencies, but without success.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/matheusouz/dwn-binding-problem
Version with bug
8.0.71 SR7.1
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
is attached in repo
The text was updated successfully, but these errors were encountered: