Crashlytics error - This app relies on Crashlytics. Please sign up for access

前端 未结 7 1831
温柔的废话
温柔的废话 2021-01-03 18:05

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 =          


        
7条回答
  •  春和景丽
    2021-01-03 18:32

    For Xamarin Android (Fabric is Deprecated - EOL)

    You need to have the following not to receive the above error:

    1. Include the NuGet packages:
      • Xamarin.Android.Crashlytics [by Microsoft]
      • Xamarin.Android.Crashlytics.Core [by Microsoft]
      • Xamarin.Android.Crashlytics.Beta [by Microsoft]
      • Xamarin.Android.Crashlytics.Answers [by Microsoft]
    2. 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.

    3. Add this line in Resources/values/Strings.xml resource file:

      15

    4. 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.


    EDIT :

    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: 1

    If you experience it differently for Xamarin, please comment below.

提交回复
热议问题