I have two build flavors in gradle but for some reason whenever i change the following flag to false i get the titled error message:
ext.enableCrashlytics =
You need to have the following not to receive the above error:
Add this line in your AndroidManifest.xml
file within
:
(You can obtain the key when you do the onboarding on https://fabric.io/onboard)
or go to https://fabric.io/kits/ios/crashlytics/install after you have signed in, you should see your key there in the tutorial.
Add this line in Resources/values/Strings.xml
resource file:
Add this line in MainApplication.cs
or YourActivity.cs
in OnCreate()
:
Fabric.Fabric.With(this, new Crashlytics.Crashlytics());
Your app should build and run past the initialization line without any issues. Only problem I have with it is the fact that there is one more place you need to update the Build version of your app everytime your release.
As far as I'm experiencing, the one value is required but not used at all. You do not actually have to increase the build number in Strings.xml
, it picks up the build number from the app automatically, so you should be fine just to leave the value at:
If you experience it differently for Xamarin, please comment below.