locked
Drawer Layout Exist both in Xamarin.Android.Support.Core.UI and Xamarin.Android.Support.V4 RRS feed

  • Question

  • User268649 posted

    I am a newbie in Xamarin with Visual Studio 2015. I have created project with Android Support V4 and V7 earlier, and it's work fine. But after i add components from Google Play Service MAP, then all my V4 objects get errors. For instance my drawer layout, this is the error :

    Severity Code Description Project File Line Suppression State Error CS0433 The type 'DrawerLayout' exists in both 'Xamarin.Android.Support.Core.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' gtSMobileAndroid D:\Source_eMedWeb\gotoSehat\gtSMobileAndroid\gtSMobileAndroid\MainActivity.cs 20 Active

    I have done many things to recover, deleting all packages and reinstall the components, but still i get this error.

    Please advice.............thank you very much in advance.......

    Saturday, December 3, 2016 4:10 AM

All replies

  • User236642 posted

    open NuGet packages and update support library V4 to 24.2.1

    Tuesday, February 7, 2017 12:20 PM
  • User184924 posted

    @Mustafa-ahmed said: open NuGet packages and update support library V4 to 24.2.1

    I've updated Support, then I got this Error.

    All Lines where I used 'ActivityCompat' gives this Error.

    Friday, November 10, 2017 10:37 AM
  • User236642 posted

    @EnisNecipoglu
    what is your targeted android version and support library V7 version ??

    Saturday, November 11, 2017 6:35 PM
  • User184924 posted

    @Mustafa-ahmed said: @EnisNecipoglu
    what is your targeted android version and support library V7 version ??

    I solved it. My Xamarin.Forms version was old. I've updated Xamarin.Forms from NuGET and set target version Android 7.1, problem resolved

    Sunday, November 12, 2017 7:22 AM