Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I'll create a Xamarin project and will the Droid project On my smartphone (Android version 4.4 API 19) but I've got this error:

System.MissingMethodException: Method Android.Support.V4.Widget.DrawerLayout.AddDrawerListener not found.

Here you could find my stacktrace:

at Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer.OnAttachedToWindow () [0x00022] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\AppCompat\NavigationPageRenderer.cs:183 
at Android.Views.View.n_OnAttachedToWindow (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in /Users/builder/data/lanes/3819/c1d1c79c/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Views.View.cs:13912 
at (wrapper dynamic-method) System.Object:946b3818-0ff5-4b93-a7a2-43cf9758f50a (intptr,intptr)

I've nothing done just run the application. Here you can find a list of the NuGet packages:

  • Xamarin (Portable)
    • Xamarin.Forms version 2.2.0.45
  • Xamarin.Droid
    • Xamarin.Forms version 2.2.0.45
    • Xamarin.Adroid.Support.v4 version 24.2.1
    • Some other support libaries
  • Xamarin.iOS
    • Xamarin.forms version 2.2.0.45

In other projects (because it's my I've start over for the third time), I've update the libary Xamarin.Forms but got more errors than now and it doesn't compile.

I've searched everywhere on the internet, but no solutions found that work for me.



What I have tried:

I've searched everywhere on the internet, but no solutions found that work for me.

Posted
Updated 14-Dec-16 4:29am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900