Xamarin.forms.googlemaps: [Android]Crash app with "java.lang.ClassCastException" when PushModalAsync

Created on 31 Mar 2017  路  7Comments  路  Source: amay077/Xamarin.Forms.GoogleMaps

Hey when pushing a modal page ontop of the map page it will cause Android 6.0 devices and higher to crash. This is very unfortunate if you consider the fact that Android 6.0 will be the standard.

DETAILS

Error message is : java.lang.ClassCastException: com.google.maps.api.android.lib6.impl.am cannot be cast to android.view.ViewGroup

PLATFORMS

which platform do you want?

  • [x] Android
  • [ ] iOS
  • [ ] UWP
bug

Most helpful comment

Update
Hey @amay077,

I have made a blank Xamarin.Forms app with the latest Xamarin.Forms + Xamarin.Forms.Maps both version v2.3.4.221-pre6.

When I push a page modally on the map page it will not crash. When using your Nuget it will crash.

Hopefully you can take a look into the issue :)

Thanks in advance

All 7 comments

Could you try reproduce on original "Xamarin.Forms.Maps"?
I suspects this is the original behavior or Xamarin.Forms's bug.

Hey,

Well I can't do that right now and this weekend :( accidently shutdown my pc at work with all the code.

Well they did change something in the latest Xamarin pre releases does it still work on your 6.0 devices and up ?

Cheers

Hey Amay077,

Well I am at the office and I will test the behavior right now. I will post a update when I am done!

Update
Hey @amay077,

I have made a blank Xamarin.Forms app with the latest Xamarin.Forms + Xamarin.Forms.Maps both version v2.3.4.221-pre6.

When I push a page modally on the map page it will not crash. When using your Nuget it will crash.

Hopefully you can take a look into the issue :)

Thanks in advance

Also running into this.

Also running into this.
Try to update xamarin.forms to v2.4 - this error is already fixed
See in this link: https://bugzilla.xamarin.com/show_bug.cgi?id=59127#c4

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amay077 picture amay077  路  7Comments

goodguy010 picture goodguy010  路  5Comments

talhaa91 picture talhaa91  路  4Comments

JKennedy24 picture JKennedy24  路  6Comments

amay077 picture amay077  路  4Comments