# 3.7 Additional Firebase Setup for Android

Now, you have to connect the firebase with your code project. Follow the steps below:

* Run the following command from your IDE terminal:

```
firebase login
```

{% hint style="info" %}
After this command, you will get a link prompt to log in with the email account that you have used on firebase. Login with that by allowing the required criteria.
{% endhint %}

* Run the following command from your IDE terminal:

```
dart pub global activate flutterfire_cli
```

{% hint style="info" %}
After this command, if you get an error like the picture below, then just copy that line and run that.

<img src="https://500245377-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkpthLdCmCVdIgYrsYJ8%2Fuploads%2FAKSOo12zBF60OGRAoNyH%2FScreenshot%202022-12-17%20at%201.10.51%20PM.png?alt=media&#x26;token=d8f20b36-8b94-4156-b6c4-6291aa5a1a83" alt="" data-size="original">
{% endhint %}

* Run the following command from your IDE terminal:

```
flutterfire configure
```

* Select Your App and Press Enter.

<div align="left"><figure><img src="https://500245377-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkpthLdCmCVdIgYrsYJ8%2Fuploads%2FtHPoVtsbMpsyEvJ1IjGv%2FScreenshot%202022-12-18%20at%201.23.03%20PM.png?alt=media&#x26;token=23ce0d65-0d6d-42a4-b562-524608b332a1" alt=""><figcaption></figcaption></figure></div>

* Select Android and press Enter.

<figure><img src="https://500245377-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkpthLdCmCVdIgYrsYJ8%2Fuploads%2FRq23PnYfaq5LC2x1yzp1%2FScreenshot%202022-12-18%20at%201.24.53%20PM.png?alt=media&#x26;token=cdb8bcb6-3dd8-4216-8cbb-f60ff1d93f00" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Use arrow keys & space to select/unselect
{% endhint %}

{% hint style="success" %}
You can select both Android & iOS if you want to build for both. If you do that, you can ignore the **4.5** Step.
{% endhint %}

After this command, A **google-services.json** file in the android/app folder and A **firebase\_options.dart** file in the lib folder will be added. If you found them, your firebase configuration is successful.
