Forum Xamarin Xamarin.Android

'[monodroid-assembly] typemap: unable to find mapping to a managed type from Java type'

Iain1986Iain1986 Member ✭✭

This is a bit of a duplicate of this thread https://forums.xamarin.com/discussion/comment/412570 but as that thread didn't have a super descriptive title I'm hoping someone from Xamarin might spot this easier.

The recent update to Xamarin Android (presumably) has resulting in the console being spammed continuously with various error like...

[monodroid-assembly] typemap: unable to find mapping to a Java type from managed type 'Android.Views.LayoutInflater+IFactory2, Mono.Android'
[monodroid-assembly] typemap: unable to find mapping to a managed type from Java type 'android/content/res/XmlBlock$Parser'
[monodroid-assembly] typemap: unable to find mapping to a managed type from Java type '[Ljava/lang/Object;'
[monodroid-assembly] typemap: unable to find mapping to a managed type from Java type 'android/content/res/XmlBlock$Parser'
[monodroid-assembly] typemap: unable to find mapping to a managed type from Java type 'android/content/res/XmlBlock$Parser'
[monodroid-assembly] typemap: unable to find mapping to a managed type from Java type 'android/animation/PropertyValuesHolder$IntPropertyValuesHolder'
[monodroid-assembly] typemap: unable to find mapping to a managed type from Java type 'android/content/res/XmlBlock$Parser'

I use the Bluetooth Plugin and this spams constantly while connecting for updates from a characteristic spamming...

[monodroid-assembly] typemap: unable to find mapping to a Java type from managed type 'System.Byte, mscorlib'
[monodroid-assembly] typemap: unable to find mapping to a Java type from managed type 'System.Byte, mscorlib'
[monodroid-assembly] typemap: unable to find mapping to a Java type from managed type 'System.Byte, mscorlib'
[monodroid-assembly] typemap: unable to find mapping to a Java type from managed type 'System.Byte, mscorlib'
[monodroid-assembly] typemap: unable to find mapping to a Java type from managed type 'System.Byte, mscorlib'
[monodroid-assembly] typemap: unable to find mapping to a Java type from managed type 'System.Byte, mscorlib'
[monodroid-assembly] typemap: unable to find mapping to a Java type from managed type 'System.Byte, mscorlib'
[monodroid-assembly] typemap: unable to find mapping to a Java type from managed type 'System.Byte, mscorlib'

Everything seems to be functioning as normal, but any debug logs are getting hopelessly lost in the output.

Can anyone from Xamarin/VS team confirm if they are aware of this?

Posts

  • Maj63Maj63 Member ✭✭
    edited May 29

    Hello there,

    This is a known issue after the last release of Xamarin.Android.

    Sadly, I can't post links on the forum because I'm not old enough apparently, even though this is a link to a Microsoft subdomain ...

    If you google "1021788/javainterop-assembly-not-found-for-xamarin-android", you should find a thread from May, 7th,
    on the developercommunity subdomain of visualstudio.com

    The last message from the Visual Studio Feedback System states that "A fix for this issue has been internally implemented and is being prepared for release. We’ll update you once it becomes available for download."

    So hopefully, this issue will be resolved soon.

  • Iain1986Iain1986 Member ✭✭

    Awesome, thanks for the heads up!

Sign In or Register to comment.