title: New build type fails with error: CrashlyticsOrgIdException: Could not fetch Crashlytics Org Id
body: <p>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.</p>
  <p>The build type includes a different application id suffix, so I logged into the Firebase console, registered a new app using the new application id suffix, and downloaded the generated google-services.json file and placed it in a src folder with the same name as the build type.</p>
  <p>Attempts to build the new variant fail with the message:</p>
  <blockquote>
  <p>Execution failed for task ':app:uploadCrashlyticsMappingFileR1Qa'.</p>
  <p>java.io.IOException: com.google.firebase.crashlytics.buildtools.exception.CrashlyticsOrgIdException: Could not fetch Crashlytics Org Id</p>
  </blockquote>
  <p>The other variants build without issue.  I have tried gradle sync, cleaning and rebuilding, as well as invalidating cache and restarting Android Studio.  But the error persists.</p>
  <p>I've searched for Crashlytics Org Id, but can find no mention of it in the documentation, or the wider internet, save a couple other SO posts that do not shed much light.</p>
  <p>What is Crashlytics Org Id, and from where is it retrieved?</p>
  <p>UPDATE: It seems that Google is trying to be a little too automagical here.
  After adding the google-services.json file to your project, literally need to open up the Crashlytics section of your Firebase console, left-click the next steps (including the step that just opens the documentation) until it says &quot;build and run your app&quot; and do that with the console open.  I'm in that habit of right-clicking links and opening them in other tabs/windows and apparently this does not trigger a necessary script on that page.</p>