Mvvmcross - trying to use fragments And the latest lib support leads to binding problems

I would like to use SlidingPaneLayout or DrawerLayout, but they require a newer support library. Xamarin has one in the component store (Android Support Library v4 (Rev 18).

But if I try to use this AND, use the support for the Mvvm fragments (which requires a link to Mono.Android.Support.v4). I get linker errors like this:

error : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.App.FragmentManager/IOnBackStackChangedListenerImplementor, Xamarin.Android.Support.v4-r18, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.App.FragmentManager/IOnBackStackChangedListenerImplementor, Mono.Android.Support.v4, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'

Removing an old support library link leads to another linker error;

error CS0012: type Android.Support.V4.App.FragmentActivity' is defined in an assembly that is not referenced. Consider adding a reference to assemblyMono.Android.Support.v4, Version = 0.0.0.0, Culture = neutral, PublicKeyToken = 84e04ff9cfb79065 '

+4
source share
1 answer

I believe that this is a common problem with the redesign of the Xamarin build from Mono to Hamarin.

Third-party assemblies such as MvvmCross and others, such as the Google Play services component, currently reference the Mono assembly that ships with Xamarin.Android (formerly Mono for Android).

Currently, MvvmCross cannot change the assembly link called “Xamarin” without removing Maps v2 support through the Google Play component, and we have more users who currently require map support and then require support for the navigation box in the latest library support.


- "Xamarin" , . , , :

  • .Net , , " " app.config, , Xamarin.Android.
  • , "Mono.Android.Support.v4", [TypeForwardedTo] - , . TypeForwardTo - https://gist.github.com/slodge/6790040 - , , Xamarin , , :/Xamarin , ?
  • MvvmCross "Fragging" - ​​ - , "Xamarin" . , - , Google Play .
+1

All Articles