First, I started developing Android with C # and Xamarin a week ago, and I'm stuck with this problem.
I already found some texts in Stack Overflow, but unfortunately did not work.
To solve this problem, I took several steps.
Before starting debugging with Android_Accelerated_x86 (Android 6.0 -API 23), Visual Studio will start searching for NavigationPageRenderer , but not there, then I got the message header above
I installed and updated the packages using the Android SDK Manager, as shown below.
Then I met a message written in the header
System.MissingMethodException: Method Android.Support.V4.Widget.DrawerLayout.AddDrawerListener' not found
So, I struggled to find a solution and
I downloaded JDK 1.8.0_101 and changed the location path of the Java Development Kit (in Tools> Options> Xamarin> Android Settings), but that didn't work. I have the same message as the title above.
I went to Tools> NuGet Package Manager> NuGet Package Management for the solution and updated only Xamarin.Forms v2.3.2.127. Then I got 7 errors. One of them -
Error: package android.support.v7.internal.widget does not exist.
And I removed the solution and made a new project using Xamarin.Forms. I got a Warnings message like
IDE0006 Search error while loading the project. Some project features, such as a complete analysis of solutions for a failed project and projects that depend on it, were disabled.
and ... I received the message as the title above.
I also got two "Call Stack"
0x23 in Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer.OnAttachedToWindow at NavigationPageRenderer.cs 0xA in Android.Views.View.n_OnAttachedToWindow at Android.Views.View.cs:
Please help me solve this problem ... Thank you very much for your attention.
android c # xamarin
wallah
source share