Open matheusouz opened 2 months ago
Can you provide the errors you are seeing?
Hey @jpobst the full log is attached on the repo linked. But we have here too
2024-08-29 18:44:36.750 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.750 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.750 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.750 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.750 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.750 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.750 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.750 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.751 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.751 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.751 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.751 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.751 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.751 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.751 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.751 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.751 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
2024-08-29 18:44:36.751 18517-18555 f com.companyname.mauiapp E Exception: addInfo: addAndroidSensor, java.lang.IllegalStateException: @NotNull method kotlin/reflect/jvm/internal/impl/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null
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 *.jar
files as well:
<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 https://www.nuget.org/packages/Xamarin.Protobuf.JavaLite
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