Bug 36012 - Xamarin Forms Maps V2 nuget dependency to the wrong xamarin.GooglePlay.Maps
Summary: Xamarin Forms Maps V2 nuget dependency to the wrong xamarin.GooglePlay.Maps
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: E.Z. Hart [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2015-11-18 11:17 UTC by FieldstrikeMobile
Modified: 2016-03-18 17:22 UTC (History)
12 users (show)

Tags: Android maps ac
Is this bug a regression?: ---
Last known good build:


Attachments
Repo Case (471.46 KB, application/octet-stream)
2015-11-24 12:33 UTC, FieldstrikeMobile
Details


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:
Status:
RESOLVED ANSWERED

Description FieldstrikeMobile 2015-11-18 11:17:49 UTC
Xamarin.Forms.Maps has a nuget dependency of:

Xamarin.GooglePlayServices.Maps (= 26.0.0.0)

the current version is:

Xamarin.GooglePlayServices.Maps 27.0.0.0

Downgrading and using V26.0.0.0 throws the following:

Calling:  Xamarin.FormsMaps.Init(this, bundle); throws the following but the app continues to work:

Java.Lang.NoSuchMethodError: No static method zzv(Ljava/lang/Object;)Ljava/lang/Object; in class Lcom/google/android/gms/common/internal/zzx; or its super classes (declaration of 'com.google.android.gms.common.internal.zzx' appears in /data/app/eu.MyApp.android.MyApp-1/base.apk)

And accessing any page that contains a map throws the following and crashes.

Java.Lang.NoSuchMethodError: No virtual method zzrn()Lcom/google/android/gms/dynamic/LifecycleDelegate; in class Lcom/google/android/gms/maps/MapView$zzb; or its super classes (declaration of 'com.google.android.gms.maps.MapView$zzb' appears in /data/app/eu.MyApp.android.MyApp-1/base.apk)
Comment 1 Rui Marinho 2015-11-18 13:58:33 UTC
Seems a problem with android repositories when downloading them on build.

Can you try clear the android cache and rebuild ?
Comment 2 FieldstrikeMobile 2015-11-19 04:37:45 UTC
@rui

Ive removed the application from my Nexus 9 running Android 6 and cleaned and rebuilt and I'm still getting the same errors:

Note that the Xamarin.FormsMaps.Init doesn't crash the application so it is probably a handled exception that is just thrown.

But on entering a page with the map the exception mentioned earlier is thrown and the application crashes.

I don't know whether this is linked but sometimes I get the following warning / exception:

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(3,3): Error: java\lang\Object.class(java\lang:Object.class) :  major version 51 is newer than 50, the highest major version supported by this compiler. (MyApp.Droid)
Comment 3 FieldstrikeMobile 2015-11-19 04:38:27 UTC
I am upgrading from Xamarin.Forms 1.5.2 pre1 to V2. I don't know whether that is relevant?
Comment 4 Sebastian Brandes 2015-11-23 04:32:27 UTC
I am currently also experiencing this issue after having upgraded to Xamarin.Forms 2.0.

I would be happy to share my source code with the Xamarin team. Please reach out if you need help in reproducing the issue. My email is: s@9r.dk
Comment 5 Rui Marinho 2015-11-23 12:14:08 UTC
Nice bike Sebastian 

I tried to reproduce this issue but i m not being able too, can we attach a sample test case da reproduces the problem please ? 

Could this be related with some android sdks references not being downloaded correctly ? For example did your project was taking too long to build and you cancel it ? 
Android SDK downloads at build time the required repositories from google play services, i wonder if that could be corrupted while downloading. 

Can you also try clear your android cache, clean and rebuild the project, it would take some time?

Thanks
Comment 6 FieldstrikeMobile 2015-11-23 12:21:09 UTC
Thanks Rui.

It may be worth reaching out to Sebastian as my project is quite big. I am going to try clear my android cache tomorrow.
Just to clarify, do you mean clear the Android SDK folder on my computer?
Comment 7 Stevi Deter 2015-11-23 14:34:32 UTC
I'm having the same issue. If I attempt to update the NuGet packages, I get the following error: 

Updating 'Xamarin.GooglePlayServices.Maps 26.0.0.0' to 'Xamarin.GooglePlayServices.Maps 27.0.0.0' failed. Unable to find a version of 'Xamarin.Forms.Maps' that is compatible with 'Xamarin.GooglePlayServices.Maps 27.0.0.0'.


As described, the app starts fine, but the NoSuchMethodError is thrown when I attempt to access the page that actually displays the map.
Comment 8 Stevi Deter 2015-11-23 16:23:29 UTC
FWIW, here's the stacktrace I'm getting from a Samsung GS5 with Android Version 5.0

No virtual method zzrn()Lcom/google/android/gms/dynamic/LifecycleDelegate; in class Lcom/google/android/gms/maps/MapView$zzb; or its super classes (declaration of 'com.google.android.gms.maps.MapView$zzb' appears in /data/app/appid-1/base.apk)

  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.CallVoidMethod (IntPtr jobject, IntPtr jmethod, Android.Runtime.JValue* parms) [0x00063] in /Users/builder/data/lanes/2098/3efa14c4/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:571
  at Android.Gms.Maps.MapView.OnCreate (Android.OS.Bundle savedInstanceState) [0x0004a] in <filename unknown>:0
  at Xamarin.Forms.Maps.Android.MapRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs`1 e) [0x0001f] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (Xamarin.Forms.Platform.Android.TElement element) [0x000fc] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x0001f] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, Boolean sameChildren) [0x00023] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x0010d] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x0000d] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (Xamarin.Forms.Platform.Android.TElement element) [0x00118] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x0001f] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, Boolean sameChildren) [0x00023] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x0010d] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x0000d] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (Xamarin.Forms.Platform.Android.TElement element) [0x00118] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x0001f] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, Boolean sameChildren) [0x00023] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x0010d] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x0000d] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (Xamarin.Forms.Platform.Android.TElement element) [0x00118] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x0001f] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, Boolean sameChildren) [0x00023] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x0010d] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x0000d] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (Xamarin.Forms.Platform.Android.TElement element) [0x00118] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x0001f] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.NavigationRenderer.SwitchContentAsync (Xamarin.Forms.Page view, Boolean animated, Boolean removed) [0x00028] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.NavigationRenderer.OnPushAsync (Xamarin.Forms.Page view, Boolean animated) [0x00000] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.NavigationRenderer.PushViewAsync (Xamarin.Forms.Page page, Boolean animated) [0x00000] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.NavigationRenderer.OnPushed (System.Object sender, Xamarin.Forms.NavigationRequestedEventArgs e) [0x0000e] in <filename unknown>:0
  at Xamarin.Forms.NavigationPage+<PushAsyncInner>d__66.MoveNext () [0x00065] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  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 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/2098/3efa14c4/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:201
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/2098/3efa14c4/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:170
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/2098/3efa14c4/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:142
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Users/builder/data/lanes/2098/3efa14c4/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:124
  at Xamarin.Forms.NavigationPage+<PushAsync>d__65.MoveNext () [0x001c4] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  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 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/2098/3efa14c4/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:201
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/2098/3efa14c4/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:170
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/2098/3efa14c4/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:142
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Users/builder/data/lanes/2098/3efa14c4/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:124
  at XXX.DashboardPage+<AddCommands>c__async8.MoveNext () [0x00022] in /Users/sdeter/Projects/XXX/XXX/Pages/DashboardPage.cs:103
--- End of stack trace from previous location where exception was thrown ---
  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 System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (System.Object state) [0x00000] in /Users/builder/data/lanes/2098/3efa14c4/source/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:994
  at Android.App.SyncContext+<Post>c__AnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/2098/3efa14c4/source/monodroid/src/Mono.Android/src/Android.App/SyncContext.cs:18
  at Java.Lang.Thread+RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/2098/3efa14c4/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36
  at Java.Lang.IRunnableInvoker.n_Run (IntPtr jnienv, IntPtr native__this) [0x00009] in /Users/builder/data/lanes/2098/3efa14c4/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Java.Lang.IRunnable.cs:71
  at (wrapper dynamic-method) System.Object:a150e2a7-6a51-48d8-b80e-2bea391a0c8e (intptr,intptr)
  --- End of managed exception stack trace ---
java.lang.NoSuchMethodError: No virtual method zzrn()Lcom/google/android/gms/dynamic/LifecycleDelegate; in class Lcom/google/android/gms/maps/MapView$zzb; or its super classes (declaration of 'com.google.android.gms.maps.MapView$zzb' appears in /data/app/appid-1/base.apk)
    at com.google.android.gms.maps.MapView$zzb.zzwP(Unknown Source)
    at com.google.android.gms.maps.MapView$zzb.zza(Unknown Source)
    at com.google.android.gms.dynamic.zza.zza(Unknown Source)
    at com.google.android.gms.dynamic.zza.onCreate(Unknown Source)
    at com.google.android.gms.maps.MapView.onCreate(Unknown Source)
    at md5b60ffeb829f638581ab2bb9b1a7f4f3f.InnerGestureListener.n_onSingleTapUp(Native Method)
    at md5b60ffeb829f638581ab2bb9b1a7f4f3f.InnerGestureListener.onSingleTapUp(InnerGestureListener.java:78)
    at android.view.GestureDetector.onTouchEvent(GestureDetector.java:595)
    at md5b60ffeb829f638581ab2bb9b1a7f4f3f.VisualElementRenderer_1.n_onTouch(Native Method)
    at md5b60ffeb829f638581ab2bb9b1a7f4f3f.VisualElementRenderer_1.onTouch(VisualElementRenderer_1.java:56)
    at android.view.View.dispatchTouchEvent(View.java:8914)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2673)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2385)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at md5b60ffeb829f638581ab2bb9b1a7f4f3f.PlatformRenderer.n_dispatchTouchEvent(Native Method)
    at md5b60ffeb829f638581ab2bb9b1a7f4f3f.PlatformRenderer.dispatchTouchEvent(PlatformRenderer.java:70)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2552)
    at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1767)
    at android.app.Activity.dispatchTouchEvent(Activity.java:2840)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2513)
    at android.view.View.dispatchPointerEvent(View.java:9125)
    at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4636)
    at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4474)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4024)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4077)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4043)
    at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4157)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4051)
    at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4214)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4024)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4077)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4043)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4051)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4024)
    at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6485)
    at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6384)
    at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6355)
    at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6575)
    at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
    at android.os.MessageQueue.nativePollOnce(Native Method)
    at android.os.MessageQueue.next(MessageQueue.java:143)
    at android.os.Looper.loop(Looper.java:130)
    at android.app.ActivityThread.main(ActivityThread.java:5835)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Comment 9 Stevi Deter 2015-11-23 17:41:02 UTC
Also getting the same issue when running on an LGE Nexus 5 that's still at 4.4.2 (API 19).
Comment 10 FieldstrikeMobile 2015-11-24 11:41:36 UTC
I don't know whether this is relevant but I do get

major version 51 is newer than 50, the highest major version supported by this compiler.
6>  It is recommended that the compiler be upgraded.

When building my project?
Comment 11 FieldstrikeMobile 2015-11-24 12:33:29 UTC
Created attachment 13974 [details]
Repo Case

Attached Reproduction Case.
Nailed the error too..

The error occurs due to the fact the Xamarin.Forms.Maps targets googleplay.Maps V26 (The bug originally stated).

The user has GoogleMaps V27 installs so Downgrades  googleplay.Maps to V26 to allow install.

This leaves googleplay.base and googleplay.basement at V27 and bang youve got yourself an error
Comment 12 E.Z. Hart [MSFT] 2015-11-24 13:20:27 UTC
Just tried the MapsSample project uploaded by FieldstrikeMobile@gmail.com; it does reproduce the error.
Comment 13 Jesus 2015-11-24 13:57:12 UTC
I have the same error after upgrading to Xamarin.Forms 2.
I uninstalled Xamarin.GooglePlayServices (all of them) and Xamarin.Forms.Maps. 
If I install Xamarin.Forms.Maps 2.0.0.6484, it installs its dependencies and I get the same error.
If I install Xamarin.GooglePlayServices.Maps (ver 26) and then Xamarin.Forms.Maps, it works.
Comment 14 Stevi Deter 2015-11-24 17:38:53 UTC
I think I must have tried every other possible combo of adding/readding/removing the libraries but the order suggested by Jesus. 

Once I did that, and cleaned the build, quit Xamarin Studio, deleted all the Android.Support and GooglePlay packages from my cache and from the solution, and then restarted Xamarin Studio and opened the project, I was finally able to get my Map back.
Comment 15 Timothy Lee Russell 2015-11-26 03:13:22 UTC
+1 Jesus for providing a solution through presumed blood, sweat and tears.
+1 Stevi for confirming the things that Jesus says.
+1 for me not having this problem anymore.
Comment 16 Gusman 2015-11-26 09:52:16 UTC
I'm having a hell of time because my app uses Maps and GCM, If I use only maps the solution given by Jesus works, but if I add GCM then everything screws up, I've tried to add the GCM version 26 but the nuget package manager does not find nothing (I entered "GCM version:26", also tried "GCM version:*").

I've even tried to modify the pakages.json and the .csproj to reference the correct package and restored it, but when the project starts it crashes because says it can't be found.

I need a solution please, this is just a madness.
Comment 17 Jesus 2015-11-26 10:08:45 UTC
Sorry to hear that Gusman.
Try to search for this: Xamarin.GooglePlayServices.Gcm version:*
From Xamarin Studio I can see three versions: 25, 26 an 27
Comment 18 Gusman 2015-11-26 10:14:12 UTC
Done!!

Thanks a lot Jesus, that did the trick, didn't know to use the version parameter the search term must be the exact name of the assembly.
Comment 19 german 2015-11-27 18:58:52 UTC
I followed Jesus rule but I got the same error. Please some help.
Comment 20 Jesus 2015-11-27 19:35:20 UTC
german, did you follow the recommendation by Stevi Deter? I deleted the bin and obj directories, before compiling again.
Comment 21 FieldstrikeMobile 2015-12-01 09:33:00 UTC
Another Xamarin.Forms.Maps nuget released. Another opportunity missed to fix the dependency issues on the package.

Disappointing.
Comment 22 Rui Marinho 2015-12-01 12:53:56 UTC
Hi we have looked at the problem and we aren't changing our explicit requirement, we are updating to require maps 27 in the next pre release though. 
We analysed the problem and we think we have more benefits on requiring the specific version of google.

The problem some users are getting isn't directly related with XF but will the IDE and the way the IDE is handling the packages. For now it seems more a XS issue, where if you have the 27 folder (for some reason) it will not downgrade or delete the 27 , you have to do it manually. And most of users aren't affected with the problem.
Comment 23 Andrew 2016-03-18 17:22:31 UTC
If you add the Xamarin.Forms package, Xamarin.GooglePlayServices.Basement, Xamarin.GooglePlayServices.AppIndexing, Xamarin.GooglePlayServices.Base and Xamarin.GooglePlayServices.GCM you get a similar error.


Xamarin.Forms: 2.1.0.6529

Xamarin.GooglePlayServices.Basement: 25.0.0.0 (can not update to latest due to Xamarin Forms dependency) 


Xamarin.GooglePlayServices.AppIndexing: 25.0.0.0 (can not update to latest due to Xamarin Forms dependency) 


Xamarin.GooglePlayServices.Base: 25.0.0.0 (can not update to latest due to Xamarin Forms dependency) 

Xamarin.GooglePlayServices.GCM: 25.0.0.0 (can not update to latest due to Xamarin Forms dependency) 


Exiting Xamarin Studio, clearing the bin and obj folders and removing the packages in the "package" folder resolves the issue after several attempts.