How to fix a missing method exception in Xamarin.Forms PCL for Android mobile app

I get an error System.MissingMethodExceptionafter updating the Xamarin.Forms package for the Android Mobile App. At line MainActivity.cs# 22:

LoadApplication (new App ());

Application Output:

[] Missing method Android.Runtime.JNIEnv::StartCreateInstance(Type,string,JValue*) in assembly Mono.Android.dll, referenced in assembly /storage/emulated/0/Android/data/XAMLDataBindings_PCL.Droid/files/.__override__/Xamarin.Android.Support.v4.dll

I tried Cleanand Rebuild All, as mentioned on the Xamarin forum, but still not working. The project works for iOS, so I'm not sure why the Android project will not work now?

+4
source share
3 answers

. Xamarin. * NuGets Android, Xamarin.Forms, Xamarin.Android. * NuGets, 21.0.3.0. . .

+2

. , , , .

'Xamarin Studio' โ†’ " "
: " " enter image description here

xxx.Droid , "" .
"" , .
โ†’ .
enter image description here

Xamarin.Android.Support.v4
. .

0

iOS, Android. , , .

So, I think the real reason: there is an exception thrown by the network, but Xamarin Studio cannot give real details and just can give a silly false exception, for example "System.MissingMethodException: Attempting to access the missing method.

0
source

All Articles