title: Firebase error. Please ensure that you spelled the name of your Firebase correctly
body: <p>When I try to save value to database, i am getting below error:</p>
  <blockquote>
  <p>Firebase error. Please ensure that you spelled the name of your Firebase correctly</p>
  </blockquote>
  <p>Anybody know how to fix it?</p>
  <p>Below is my app's build.gradle</p>
  <p><strong>build.gradle</strong></p>
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply plugin: 'kotlin-kapt'
  apply plugin: 'com.google.gms.google-services'
  apply plugin: 'com.google.firebase.crashlytics'
  
  android {
      compileSdkVersion 30
  
      defaultConfig {
          applicationId &quot;com.android.armessage&quot;
          minSdkVersion 24
          targetSdkVersion 30
          versionCode 1
          versionName &quot;1.0&quot;
      }
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  
      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'
      }
  }
  
  dependencies {
      implementation &quot;org.koin:koin-android-viewmodel:$koin_version&quot;
      implementation 'com.google.firebase:firebase-database-ktx:19.6.0'
  }
  
  </code></pre>
  <p>Below is my fragment,
  I am trying to save text(&quot;Hello world&quot;) in database onCreateView</p>
  <pre><code>
      class BottomSheetFragment: BottomSheetDialogFragment() {
      override fun onCreateView(
          inflater: LayoutInflater,
          container: ViewGroup?,
          savedInstanceState: Bundle?
      ): View? {
          val inflate = inflater.inflate(R.layout.bottom_sheet, container, false)
  
          val database = FirebaseDatabase.getInstance()
          database?.setLogLevel(Logger.Level.DEBUG)
          val myRef = database!!.reference
          myRef.setValue(&quot;Hello, World!&quot;)
  
          return view
      }
  }
  
  </code></pre>
  <p>google-services.json</p>
  <pre><code>{
    &quot;project_info&quot;: {
      &quot;project_number&quot;: &quot;1262330&quot;,
      &quot;firebase_url&quot;: &quot;https://rt-73b76-default-rtdb.europe-west1.firebasedatabase.app&quot;,
      &quot;project_id&quot;: &quot;rtb76&quot;,
      &quot;storage_bucket&quot;: &quot;rtb76.appspot.com&quot;
    },
    &quot;client&quot;: [
      {
        &quot;client_info&quot;: {
          &quot;mobilesdk_app_id&quot;: &quot;1:4545:f33&quot;,
          &quot;android_client_info&quot;: {
            &quot;package_name&quot;: &quot;com.android.demo&quot;
          }
        },
        &quot;oauth_client&quot;: [
          {
            &quot;client_id&quot;: &quot;555677-77.apps.googleusercontent.com&quot;,
            &quot;client_type&quot;: 3
          }
        ],
        &quot;api_key&quot;: [
          {
            &quot;current_key&quot;: &quot;44545-45455&quot;
          }
        ],
        &quot;services&quot;: {
          &quot;appinvite_service&quot;: {
            &quot;other_platform_oauth_client&quot;: [
              {
                &quot;client_id&quot;: &quot;454545-54545.apps.googleusercontent.com&quot;,
                &quot;client_type&quot;: 3
              }
            ]
          }
        }
      }
    ],
    &quot;configuration_version&quot;: &quot;1&quot;
  }
  </code></pre>
  <p><strong>Error:</strong></p>
  <pre><code>websocket opened
  2020-12-26 23:50:37.012 3867-4287/com.android.demo D/WebSocket: ws_0 - Reset keepAlive
  2020-12-26 23:50:37.014 3867-4288/com.android.demo D/WebSocket: ws_0 - ws message: {&quot;t&quot;:&quot;c&quot;,&quot;d&quot;:{&quot;t&quot;:&quot;s&quot;,&quot;d&quot;:&quot;Firebase error. Please ensure that you spelled the name of your Firebase correctly&quot;}}
  2020-12-26 23:50:37.014 3867-4287/com.android.demo D/WebSocket: ws_0 - Reset keepAlive. Remaining: 44998
  2020-12-26 23:50:37.015 3867-4287/com.android.demo D/WebSocket: ws_0 - HandleNewFrameCount: 1
  2020-12-26 23:50:37.015 3867-4287/com.android.demo D/WebSocket: ws_0 - handleIncomingFrame complete frame: {t=c, d={t=s, d=Firebase error. Please ensure that you spelled the name of your Firebase correctly}}
  2020-12-26 23:50:37.016 3867-4287/com.android.demo D/Connection: conn_0 - Got control message: {t=s, d=Firebase error. Please ensure that you spelled the name of your Firebase correctly}
  2020-12-26 23:50:37.016 3867-4287/com.android.demo D/Connection: conn_0 - Connection shutdown command received. Shutting down...
  2020-12-26 23:50:37.016 3867-4287/com.android.demo D/PersistentConnection: pc_0 - Firebase Database connection was forcefully killed by the server. Will not attempt reconnect. Reason: Firebase error. Please ensure that you spelled the name of your Firebase correctly
  2020-12-26 23:50:37.016 3867-4287/com.android.demo D/PersistentConnection: pc_0 - Connection interrupted for: server_kill
  2020-12-26 23:50:37.016 3867-4287/com.android.demo D/Connection: conn_0 - closing realtime connection
  2020-12-26 23:50:37.016 3867-4287/com.android.demo D/WebSocket: ws_0 - websocket is being closed
  </code></pre>