Home > other >  I downloaded an android source code from github, how do i connect it to my own firebase
I downloaded an android source code from github, how do i connect it to my own firebase

Time:12-05

I downloaded an android source code from github, how do i connect it to my own firebase? (i has map locations and uploading pictures so its becoming a pain to connect)

I just connected thinking the structure would automatically update itself

CodePudding user response:

Change the Project identifier and update the google-services.json file.

CodePudding user response:

  1. download google-services.json file from your firebase
  2. add it into yourproject/app folder
  3. change your application ID in your build gradle for the same package name in google-services.json file, like this:
//open google-services.json file and you'll see it
"android_client_info": {
    "package_name": "your.package.name"
}


//replace in build.gradle
android {
    compileSdk 32

    defaultConfig {
        applicationId "your.package.name"

  • Related