Android app no longer linking to existing firebase project - android

Using android studio, I created an app and linked it to a Firebase project.
I opened the app on my android studio recently and discovered it wasn't linked to my Firebase project any longer. I checked the Firebase console and saw that the app was still connected. However, it's still not reflecting in my android studio.
When I try to connect my app to Firebase (afresh), I can clearly see my Firebase project as one of the options (with one app connected ==> my app).
In summary, how do I reconnect an app to firebase?
I have tried restarting my android studio, cleaning the project, invalidating cache and restarting.

As long as there is no external tampering with an android studio project, an android app would always remain connected to Firebase.
I was able to solve this problem by signing out of all my Google accounts and then signing in with the account associated with the project. All I had to do after was attempt to reconnect again and kAbOoM, it worked fine.
There are two extra checkers/fixes I'd recommend to anyone that runs into this problem:
Check whether the google-services.json file exists. It's usually in the /app directory of android projects. If this file does not exist, it means the app is not connected to any Firebase project. One can then proceed to connect one's app to Firebase either manually or on the android-studio IDE. If the file exists, proceed to 2.
Dependencies: A lot of Firebase-type problems stem from dependency issues. Ensure the following:
Avoid version conflicts Ensure that all dependencies are up-to-date Take warnings seriously, they are like seedling-errors
I hope this helps other people who might run into this error.. Merry coding!

Related

Firebase console sdk setup showing as unfinished

I created an android application on Android studio 3.4.2 and integrated Firebase using the firebase assistant tool provided on Android studio.There is no problem with using the features of Firebase on the app but when going to the developer's console of Firebase and going to the project overview, it appears as if the the sdk setup is not finished ,I tried following the sdk setup steps provided and the setup won't finish at the last stage i.e, "checking if the app has communicated with our servers,you may need to uninstall and reinstall the app". I've uninstalled my app and reinstalled it but doesn't seem to be registering the app on the Firebase server.
I've tried restarting the internet, Uninstalled my app and reinstalled,made sure net connectivity are okay on both emulator and pc
Check your Firebase console projects, Is there any project with the same package name?. If there is any please remove and try again.

SDK setup for Flutter app won´t finish in Firebase

I made a Flutter app which i try to connect to Firebase (via console) to use a database.
The app registration has been done and the google services file as well as the Firebase SDK are added to the Android section in my project.
The connection gets checked on step 4 but it won´t proceed.
My guess is that the Firebase SDK might not be synced yet. I didn´t find any "Sync now" button for my Gradle files in the Flutter project. I also added the Google Services.json file anew several times but it didn´t change anything.
Looking forward for your tips and answers.
Greetings.

Firebase test lab never start

I have setup a project in Firebase to run Instrumented Test for my app. I created the project from Android Studio, then I went to the Firebase Console and moved the project to Blaze Plan. I logged in and setup the project in Android Studio, so far so good, the thing is that when I try to run the test in Firebase using the Sample Spark Configuration but Android Studio never finishes to upload the APK, I don't have any error neither, what I get in Android Studio RUN console are the following lines:
Testing started at 11:29 ...
Using Cloud Storage Bucket location test-bucket-id
Uploading app APK ...
So, it seems there are some issue witht the bucket or with the project, but I'm not able to read any error anywhere. So, where can I access any log to know what is going on? Does a firebase project expose logs though its web UI or does Android Studio allows me to get some kind of logs besides what I get on the build window?
I had the same issue. Turned out there wasn't anything wrong with the project or the bucket. All I had to do was specify the package of my instrumented tests instead of using the "all in module" option in the run configuration.

Android studio Firebase and Github pushing and cloning

I have created a small project for user register and login in(Authentication) android studio using firebase and it was working fine. Basically i need to keep this project on github, I have moved to project to my desktop and then pushed it to github. My version of the project works, however, the cloned project doesn't seem to work as it just keeps loading when the user wants to register or login.
Also, it comes up with some errors like missing iml's or that the app has multiple slice apk's and need to uninstall.
My question is what steps do I need to undertake to make sure that the application will work when pushed to a github repo and then cloned back from the repo, so that the application runs when downloaded on any pc, and do i have to do anything to the firebase?
since what i see is that everything is in place, package name hasnt changed, all files and dependencies are present.
First of all you didn't specify what authentication you are using. For example if you are using facebook you need to add to the Facebook developers page the sha1 key fingerprint for each device you are going to install the app.
Secondly I have deployed my firebase project to github and working from my mac and windows machine without any problem syncing with Firebase. In firebase project settings as I can see I haven't added any SHA certificate fingerprint.
Make sure that you have added on Github all the SHA certificate fingerprint from any pc that you are planning to clone the project.
First of all i was using Email and password authentication.
Secondly the issue was that the google play was not updated inside of the emulator.
For anyone that runs into the same problem click the three dots at the bottom of the emulator panel and go into "Google Play" and update.
Hope this helps someone!

Google Sign In method with Firebase not working through version control shared project in Android Studio

I have a team working on a project which uses Firebase for storing data and Google Sign in for authenticating users and their own stored data.
The problem is that everything works fine on my computer when I run the application through Android Studio (tried on 3 mobile phones), but when I share my code with my team through Git, they cannot sign in for some unknown reason. Then I've built an APK file and suddenly it all worked (they managed to run application on their phones).
Can anyone explain what is the main cause of this problem and how could I possibly edit the project to deliver a working project to my teammates on Git?
Your teammates should add a SHA fingerprint to your project in the firebase console. You can do that in your project's settings -> general and "ADD FINGERPRINT"

Categories

Resources