A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hi @Vignesh Palthurai ,
Thanks for your question.
In a normal Android app, Google’s Gradle tools automatically create that badge (the "build ID").
But in .NET MAUI, we’re not using normal Gradle, we use the Plugin.Firebase wrapper. The plugin brings in the real Crashlytics detective, but it doesn’t automatically create the badge.
I recommend some following steps:
- Create (or open) the
strings.xmlfile.
Go to this exact folder in your MAUI project:
Platforms/Android/Resources/values/
Inside that folder, create a new file called strings.xml (if it doesn’t already exist).
- Then, put this content inside
strings.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="com.google.firebase.crashlytics.mapping_file_id">none</string>
<!-- Optional safety line -->
<string name="com.crashlytics.android.build_id">1.0</string>
</resources>
- Set the Build Action correctly
- Right-click the
strings.xmlfile in Solution Explorer. - Choose Properties.
- Set Build Action to
AndroidResource(very important!).
- Clean + Rebuild + Run Clean the solution → Rebuild → Run on Android device/emulator.
Make sure you initialize Firebase and enable Crashlytics in MauiProgram.cs. Add this code before builder.Build():
// Check Plugin.Firebase docs for the exact method in your version.
builder.ConfigureFirebase();
CrossFirebaseCrashlytics.Current.SetCrashlyticsCollectionEnabled(true);
If ConfigureFirebase() is not available, you can also try:
CrossFirebase.Initialize();
I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.