Quickstart-android: Connect to Firebase failed

Created on 6 Aug 2018  Â·  6Comments  Â·  Source: firebase/quickstart-android

I will try to connect app to firebase in android studio but every time get error:
Firebase: Connect to Firebase failed. Please check your internet connection and try again.
error

I searched the whole internet but cannot get solution.Is there any solution.?

Most helpful comment

I am having the same issue and error message. I have checked my internet connection and everything is working fine. I have checked on different networks and still have the same issue. Also, when I upload the google-services.json file when manually attempting to sync Firebase with Android Studio project it tells me that the file does not belong to the project. I cannot find any more information on this.

All 6 comments

Yes there is a solution . don't use android studio tool directly connected
to firebase data base . create at firebase saparatly and then connect to
step by step with application

On Mon 6 Aug, 2018, 10:47 PM Awais914, notifications@github.com wrote:

I will try to connect app to firebase in android studio but every time get
error:
Firebase: Connect to Firebase failed. Please check your internet
connection and try again.

[image: error]
https://user-images.githubusercontent.com/40486209/43730803-06de8578-99c6-11e8-904f-f63f6c259c99.PNG

I searched the whole internet but cannot get solution.Is there any
solution.?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/firebase/quickstart-android/issues/582, or mute the
thread
https://github.com/notifications/unsubscribe-auth/Ae-B7XpVnZL_GAvFOySUAwdo--Ef_TLlks5uOHoSgaJpZM4VwxXd
.

raojagannath11 i don't know why but firebase connected with in android studio on mobile hotspot internet connection, but failed on router connection.

@Awais914 sounds like it really was an internet connection issue. Due to that, closing this.

I am having the same issue and error message. I have checked my internet connection and everything is working fine. I have checked on different networks and still have the same issue. Also, when I upload the google-services.json file when manually attempting to sync Firebase with Android Studio project it tells me that the file does not belong to the project. I cannot find any more information on this.

I have faced same problem while connecting to firebase they are showing error message like please check your internet connection and i were tried it manually also but i can't connect so if any solution is there then please suggest me...

The first time I tried to link my account to Firebase, I had an out of date google-services.json so it failed to connect to my Firebase project.

I then mistakenly went to myaccount.google.com and unlinked the Android Studio link in "Security" which was bad! because I could never link it back and received "Firebase: Connect to Firebase failed. Please check your internet connection and try again." No matter what.

I had to grab my other computer, clone the repo on it and get it running in Android Studio. Had to reinstall a lot of dependencies so it took a while. Next I re-downloaded googleservices.json from the Firebase Console and added it to my repo to make sure it was up to date. I signed out of google on Safari and Chrome. I ran my build on the device to make sure it was good to go.

Then finally, I pressed Connect to Firebase. It opened the browser to Google Login, I logged in with my google account (that I use for Firebase) and it worked.

I'm using React Native by the way & react-native-firebase.

I'll also add that I couldn't get it working on my first computer, but the important part seemed to be generating the SHA Key (https://stackoverflow.com/questions/27609442/how-to-get-the-sha-1-fingerprint-certificate-in-android-studio-for-debug-mode) and adding it to firebase for my Android app.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wellbranding picture wellbranding  Â·  3Comments

smoi picture smoi  Â·  5Comments

udaysrinath picture udaysrinath  Â·  5Comments

fisache picture fisache  Â·  4Comments

ksachdeva11 picture ksachdeva11  Â·  4Comments