How to connect Flutter Android Firebase

Hello everyone, today we will learn how to connect Flutter Firebase for Android. Follow me, first thing first you have to go to https://console.firebase.google.com

  1. Creating for project and choose it

2. Enter your project name

3. You can click continue button

4. Select Default Account for Firebase

After click Create project button, wait for a minutes

……. tada, project has been successfully created

5. Add app button

6. Choose android

7. Before you entry Android package name

Let’s open the flutter project

Copy that, applicationId “com.apps.myfirstproject” and then paste

8. After click Register app button, download google-services.json

9. Tap icon copy

10. Open file build.gradle

after that you paste the code, make sure line 4 and line 18 google() added

11. Tap icon copy

12. Open file app/build.gradle and paste apply plugin: ‘com.google.gms.google-services’ and change minSdkVersion 19

13. Copy file google-services.json (file from Step 8) and paste on folder app

14. Add example library firebase auth, firebase core and cloud firestore in pubspec.yaml

15. Click Pub get

16. Last step run android emulator

……. tada, you have successfully integrated flutter firebase for Android :-)

--

--

Mobile Application Developer, using flutter and android native kotlin or java

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nur Ahmad

Mobile Application Developer, using flutter and android native kotlin or java