Jonathan Pobst

Results 175 comments of Jonathan Pobst

New packages were released today. Please try them out and let us know if it fixes this!

Yep, I guess some of the AndroidX packages still need to be bumped. @moljac

It looks like `FrangmentManager` was deprecated in the base Android library (`Mono.Android.dll`) because it was moved to `AndroidSupportLibrary`/`AndroidX`: https://developer.android.com/reference/android/app/FragmentManager.html You can try adding the `Xamarin.AndroidX.Fragment` NuGet and using the `FragmentManager`...

There definitely isn't a generic version of it, so you'll need something like: ``` FragmentManager.FindFragmentById (Resource.Id.googlemap) as MapFragment ``` I think the other issue is that this isn't a `static`...

I am just looking at your screenshots. For example, why does `FragmentManager` have a red squiggle under it in your screenshot?

That looks closer. The remaining issue is that there isn't a generic version of `FindFragmentById`, so you'll need: ``` (SupportFragmentManager.FindFragmentById (Resource.Id.googlemap) as MapFragment).GetMapAsync (this); ```

I don't know if this will work at runtime, but it should at least compile: ``` SupportFragmentManager.FindFragmentById (Resource.Id.googlemap).JavaCast ().GetMapAsync (this); ```

Honestly, I would probably just live with the deprecated warning until you move your application to AndroidX. The AndroidSupport libraries are deprecated as well, they just don't have a the...

Ok, then back to your first screenshot. The issue is you are using the deprecated `Android.App.FragmentManager` that ships in `Mono.Android.dll` and not the `AndroidX.Fragment.App.FragmentManager` that ships in https://www.nuget.org/packages/Xamarin.AndroidX.Fragment. You will...

`Xamarin.AndroidX.Migrator` updates your project from using AndroidSupportComponents to using AndroidX. You weren't using AndroidSupportComponents, you are using the even older implementation that ships directly with Android. In order to use...