Skip to content Skip to sidebar Skip to footer

New Build Type Fails With Error: Crashlyticsorgidexception: Could Not Fetch Crashlytics Org Id

I have a project that has been using Crashytics for a while. Today, I added a new build type by copying/pasting one of the existing blocks under buildTypes{...} and renaming it. T

Solution 1:

I got this error when Crashlytics was not completely configured in Firebase Console Make sure that you have added your new build type as separate app in console and then go to Crashlytics section select new app and complete all three steps there.

After this build again, build should succeed.

Solution 2:

in my case, I changed the

build.gradle(project)

classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0-beta02'

to :

classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0'

And then rebuild. The problem solved.

Solution 3:

Solution 4:

Make sure that you have added your app in the firebase project settings with the correct package name and that you have downloaded the google-services.json file and put it into the app.

  1. Open Firebase Console
  2. Select your project
  3. In the left menu next to Project Overview you can navigate to the Project settings.
  4. Use the Add app button or check the existing package name for the app.
  5. Download google-services.json and put into your project.

Solution 5:

just remove

classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0-beta02'

and

apply plugin: 'com.google.firebase.crashlytics'

build and enjoy

Post a Comment for "New Build Type Fails With Error: Crashlyticsorgidexception: Could Not Fetch Crashlytics Org Id"