How to completely disconnect an Android app from Firebase (in Android studio)

23,282

Solution 1

You should undo all the steps that you are instructed to perform in the manual integration. So, remove all Firebase dependencies from build.gradle, remove the Google Services plugin from the bottom of build.gradle, and remove the google-services.json file.

Solution 2

Try these steps to remove Fire-base from Android Studio project.

Delete google-services.json file from the Project (Find the file by Project view)

Remove dependencies from Project-level build.gradle (/build.gradle)

buildscript {
  dependencies {
    // Remove this line
    classpath 'com.google.gms:google-services:4.2.0'
  }
}

Remove all the Fire-base related dependencies from the project App-level build.gradle (//build.gradle) file

dependencies {
   // Remove this line
   implementation 'com.google.firebase:firebase-core:17.0.0'
}

Remove the line below from the bottom of the App-level build.gradle (//build.gradle) file

apply plugin: 'com.google.gms.google-services'

Restart Android Studio

Solution 3

Try this, On the project level, delete the google-services.json file enter image description here

and then sync the project
enter image description here

Share:
23,282
Taslim Oseni
Author by

Taslim Oseni

I'm a software engineer with over 5 years of professional experience building awesome software. I contribute actively to a ton of online communities including Wikipedia, Quora, Genius and of course, Stackoverflow. 😄

Updated on February 13, 2021

Comments

  • Taslim Oseni
    Taslim Oseni over 3 years

    I want to completely disconnect my app from Firebase. This question has been asked several times (e.g here). Most of the answers focus on disconnecting an app from Firebase within the Firebase console and not within Android studio.

    After disconnecting my app from the Firebase console. Everytime I try to reconnect the app to another Firebase project, an error balloon pops up stating that the app is already part of a Firebase project. I know this behaviour occurs because some files from the old Firebase project are still present. How do I get rid of them?