title: FirebaseCrashlytics: Settings request failed
body: <p>I almost finished building my android app, but I want to add FirebaseCrashlytics. I always add this and I never had a problem installing it. But now its diffrent. I get the following error:</p>
  <pre><code>2021-05-24 20:41:42.807 11296-11333/com.example.depeuleschil E/FirebaseCrashlytics: Settings request failed.
  java.io.FileNotFoundException: https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/1:966637647957:android:9f830999a842bf19b5fcdc/settings?instance=864af142db1afeaf05a53d2c5a0bee2a10c2f546&amp;build_version=1&amp;display_version=1.0&amp;source=1
      at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:255)
      at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:211)
      at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:30)
      at com.google.firebase.crashlytics.internal.network.HttpGetRequest.execute(HttpGetRequest.java:80)
      at com.google.firebase.crashlytics.internal.settings.network.DefaultSettingsSpiCall.invoke(DefaultSettingsSpiCall.java:113)
      at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(SettingsController.java:199)
      at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(SettingsController.java:192)
      at com.google.android.gms.tasks.zzp.run(Unknown Source:2)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
      at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:64)
      at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:27)
      at java.lang.Thread.run(Thread.java:923)
  </code></pre>
  <p>I have spent 2 hours on google already and on Stackoverflow there are some people that encounter the same sort of problem. But the problem is always slightly different and I have literally tried every suggesting that I could find on Stackoverflow, but nothing works.</p>
  <p>This is the documentation I use:
  <a href="https://firebase.google.com/docs/crashlytics/get-started?platform=android" rel="noreferrer">https://firebase.google.com/docs/crashlytics/get-started?platform=android</a></p>
  <p>I have deleted and cleared the firebase app online and tried to reinstall (3 times) but nothing works. I hope someone can help me with this problem.</p>
  <p>This is my gradle file (app level)</p>
  <pre><code>plugins {
  id 'com.example.test'
  id 'kotlin-android'
  id 'kotlin-kapt'
  id 'com.google.gms.google-services'
  id 'com.google.firebase.crashlytics'
  }
  
  android {
  compileSdkVersion 30
  buildToolsVersion &quot;30.0.3&quot;
  
  defaultConfig {
      applicationId &quot;com.example.test&quot;
      minSdkVersion 16
      targetSdkVersion 30
      versionCode 1
      versionName &quot;1.0&quot;
      //for support vector images in an imageview
      vectorDrawables.useSupportLibrary = true
  
  
      testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
  }
  
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
      }
  }
  compileOptions {
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8
  }
  kotlinOptions {
      jvmTarget = '1.8'
  }
  buildFeatures {
      viewBinding true
  }
  }
  
  dependencies {
  
  implementation &quot;org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version&quot;
  implementation 'androidx.core:core-ktx:1.5.0'
  implementation 'androidx.appcompat:appcompat:1.2.0'
  implementation 'com.google.android.material:material:1.3.0'
  implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  implementation 'com.google.android.material:material:1.3.0'
  implementation 'androidx.recyclerview:recyclerview:1.2.0'
  // cardView library
  implementation 'androidx.cardview:cardview:1.0.0'
  // Viewpager2
  implementation 'androidx.viewpager2:viewpager2:1.0.0'
  //tablayout
  implementation 'com.google.android.material:material:1.4.0-beta01'
  implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  implementation 'com.synnapps:carouselview:0.1.5'
  implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
  implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
  testImplementation 'junit:junit:4.+'
  androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  
  // firebase
  implementation platform('com.google.firebase:firebase-bom:28.0.1')
  implementation 'com.google.firebase:firebase-crashlytics-ktx'
  implementation 'com.google.firebase:firebase-analytics-ktx'
   }
  </code></pre>
  <p>and this is my build.gradle (package level)</p>
  <pre><code>buildscript {
  ext.kotlin_version = &quot;1.4.32&quot;
  repositories {
      google()
      jcenter()
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:4.2.1'
      classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
      // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
      classpath 'com.google.gms:google-services:4.3.8'
      classpath 'com.google.firebase:firebase-crashlytics-gradle:2.6.1'
  }
  }
  allprojects {
      repositories {
           google()
           jcenter()
       }
    }
  
   task clean(type: Delete) {
       delete rootProject.buildDir
    }
  </code></pre>