Bug 36145 - Exception thrown when instantiating a Map in Xamarin.Forms 2.0 on Android
Summary: Exception thrown when instantiating a Map in Xamarin.Forms 2.0 on Android
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.0.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-11-23 06:10 UTC by Sebastian Brandes
Modified: 2016-04-13 19:45 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Sebastian Brandes 2015-11-23 06:10:08 UTC
After upgrading my Xamarin.Forms 1.5.2 project to Xamarin.Forms, I keep getting the following exception whenever I try to access a page with a Xamarin.Forms Map instance. See below.

I have tried to clean my project, deploying to a fresh Android emulator image and debugging on a separate device. But it does not seem to be an issue related to the platform running the app.

Please let me know what kind of information is needed to resolve this issue.


Exception: Java.Lang.NoSuchMethodError: com.google.android.gms.common.internal.zzx.zzv
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/2098/3efa14c4/source/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
  at Android.Runtime.JNIEnv.CallStaticIntMethod (IntPtr jclass, IntPtr jmethod, Android.Runtime.JValue* parms) [0x00064] in /Users/builder/data/lanes/2098/3efa14c4/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:1501 
  at Android.Gms.Maps.MapsInitializer.Initialize (Android.Content.Context context) [0x00049] in <filename unknown>:0 
  at Xamarin.FormsMaps.Init (Android.App.Activity activity, Android.OS.Bundle bundle) [0x0002b] in <filename unknown>:0 
  --- End of managed exception stack trace ---
java.lang.NoSuchMethodError: com.google.android.gms.common.internal.zzx.zzv
	at com.google.android.gms.maps.internal.zzy.zzaF(Unknown Source)
	at com.google.android.gms.maps.MapsInitializer.initialize(Unknown Source)
	at md5470ba2f9164bfdf1461f905e050302df.MainActivity.n_onCre
ate(Native Method)
	at md5470ba2f9164bfdf1461f905e050302df.MainActivity.onCreate(MainActivity.java:28)
	at android.app.Activity.performCreate(Activity.java:5231)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
	at android.app.ActivityThread.access$800(ActivityThread.java:135)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:136)
	at android.app.ActivityThread.main(ActivityThread.java:5001)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:515)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
	at dalvik.system.NativeStart.main(Native Method)

Unhandled Exception:

Java.Lang.NoSuchMethodError: com.google.android.gms.maps.MapView$zzb.zzrn
Comment 1 Paul DiPietro [MSFT] 2015-11-23 11:23:48 UTC
Providing your system/version info from whichever IDE you use would be appreciated to start with, and if you can manage to reproduce the issue in a separate project, sharing that would be even more helpful.
Comment 2 Paul DiPietro [MSFT] 2016-04-13 19:45:35 UTC
Thank you for your bug report. As we have not received the information requested, we cannot properly triage your bug and are marking it resolved.

Warm regards,
Xamarin Forms Team