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:
- download google-services.json file from your firebase
- add it into yourproject/app folder
- 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"