Android [ Java, Kotlin ]

[Android Kotlin Connecting to Firebase]

Moonsu99 2023. 7. 12. 11:19

1. Access to Firebase.(https://firebase.google.com/)

2. Click "Get started" and Login

3. Click "Add project"

Fill in the project name and click the Continue button.(Any project name is fine)

 

Check "Enable Google Analytics for this project" and click the Continue button.

 

4. For "Select an account", select "Default Account for Firebase" and click Create project.

If you've followed this well, now you'll see this screen.

Now, click the Android icon on the screen.

In "Register App," the item "Android Package name" must match the project you created. The package name can be found here.

"App nickname" can be anything, and "Debug signing certificate SHA-1" can be applied later when needed, but I'll tell you how to check it.

Click on the terminal located at the bottom of the Android studio. You can then type "gradlew singing report" and press Ctrl+Enter to confirm.

Download "Downlad google-services.json" and put the file in the location shown on the page.

Now just set plugins and dependencies and it's over. Write the corresponding codes and then do "sync now".

Done.

I will post things like rule authority separately later. Thanks.