Before you start please make sure that you have switched your billing account and you have owner permissions. Without that permissions you will not be able to import your google cloud project into firebase and Google+ signup will not work. Projectid from google cloud project and projectid in firebase must be the same.


1. Create Firebase App


The first step is to open <span class=""><i><b>Firebase console</b></i></span> and click <span class=""><i><b> Import Google project</b>. Select your <b>offito-xxx</b> project and <b>import</b>. It is very important that you import and do not create new project.</i></span>

Click<span class=""><i><b>&nbsp;Add Firebase to your Android app </b></i></span>

Type in <span class=""><i><b>com.yourapp.android</b></i></span>

Click <span class=""><i><b>App nickname</b></i></span>

Type in your App name - for example&nbsp;<b><i>Offito tutorial</i></b>

Click <span class="component"><i><b> Register app </b></i></span>

Click<span class=""><i><b>&nbsp;Download google-services.json</b>. You will need this file for Android SDK integration.</i></span>

Click <span class="component"><i><b> CONTINUE </b></i></span>

Click <span class="component"><i><b> Finish </b></i></span>

That's it. You're done.


2. How to use google-services.json


The first step is to open <span class=""><b>google-services.json</b></span>&nbsp;file which you have downloaded from firebase and <b>copy content</b>

Open&nbsp;<span class=""><i><b>Android Studio&nbsp;</b>with your project</i></span>

Open&nbsp;<span class=""><i><b>Editor for google-services.json</b></i></span>

Press <b>⌘+V</b> to paste file content

Press <b>⌘+S&nbsp;</b>to save it

Click <span class=""><i><b>Sync Project with Gradle Files</b></i></span>


3. Generate SHA fingerprint for Firebase


Make sure that your <b>signingConfigs</b> are correctly configured. After that Click <span class=""><i><b>Gradle</b></i></span>

Click <span class="component"><i><b>:app</b></i></span>

Click <span class="component"><i><b>android</b></i></span>

Click <span class="component"><i><b>signingReport</b></i></span>

Doubleclick <span class="component"><i><b>signingReport</b></i></span>

Click <span class="component"><i><b>Gradle Console</b></i></span>

That's it. You're done.


4. Setup your SHA fingerprint in Firebase