Why MonoAndroid is not supported anymore by some plugins like Firebase?

Wojciech Kulik 20 Reputation points
2024-07-16T19:46:25.38+00:00

Hi!

I'm not up-to-date with Xamarin. I've got 3 projects in Xamarin.Forms, but I don't actively maintain them. Only from time to time I have to update a few things to meet Google requirements. Usually, I also update all dependencies.

However, recently I noticed I can't update Xamarin.Firebase in Android project because I get:

Package Xamarin.Firebase.Analytics 121.3.0.7 is not compatible with monoandroid13.0 (MonoAndroid,Version=v13.0). Package Xamarin.Firebase.Analytics 121.3.0.7 supports: net8.0-android34.0 (.NETCoreApp,Version=v8.0)

I checked NuGet package and it turns out that they stopped supporting MonoAndroid. The same with Xamarin.Android.Google.BillingClient.

Could anyone tell me what happened in the meantime? Is there any new approach now? If so, how can I migrate my project?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 61,181 Reputation points
    2024-07-16T20:10:44.36+00:00

    Xamarin (and Xamarin Forms) is no longer supported. Support ended 5/1/2024. The replacement is Maui.

    https://learn.microsoft.com/en-us/dotnet/maui/migration/?view=net-maui-8.0


1 additional answer

Sort by: Most helpful
  1. Graham McKechnie 321 Reputation points
    2024-07-17T08:49:55.9666667+00:00

    Basically, you are screwed if you are using Xamarin.Forms and therefore you have to convert to Maui.

     However, if you have a Xamarin.Android app, you can still use Xamarin.Android including support for Android 14. The only thing that is not supported when building with Android 14 is any new features that were introduced in Android 14 (Credential Manager etc.).   I’ve recently published an Xamarin.Android 14 app on Google Play with no problems at all.

    For instance, it uses Xamarin.Android.Google.BillingClient 6.0.1.3, so it complies with Google’s minimum requirement to use BillingClient version 6. I don’t have any experience with Xamarin.Firebase.Analytics but I suspect if you dial it back a couple of versions like I’ve done with BillingClient you will get it to build successfully.

    I’m now converting my app to net8.0-android, so I can now convert at my leisure and don’t intend to release it until Android 15 is available.  I originally converted this app to net8.0-android around Sept/Oct last year when Net8 was released but unfortunately, the performance was far inferior to the Xamarin.Android version. I’m hoping for a better result this time.  

    As of today 3479 open issues at https://github.com/dotnet/maui/issues, so I’m not sure I’d be in a hurry to go that route.

    0 comments No comments