Android Studio Can't Connect Firebase Assistant - android

I am trying to connect to Firebase from Android Studio Assistance but getting following error despite having internet connection.
Firebase
A config file "G:\ANDROID\GoFishing\app\google-services.json" was found, but it indicates a project ID "gofishing-149406" that you don't appear to have access to. Request access or delete the file in order to proceed with the connection process.

just Delete that config and go again to firebase console and download a new file and make sure that you have given the access to the project if done problem solved if not make sure that you are not usinfg the the package which was already integrated and restricted access for another apps if so create a a new package and do the same process
if it wont help
just delete that file (config) and go to assistant and click on connect to fire base and give all the credentials and give the new name to package and go with it every thing runs properly
hope it will hep you for sure

Just delete "google-services.json" file in "app" folder of your project and reconnect your app to Firebase with Assistant

This was happening to me because the account I used to login to Android Studio (the account in the most top right) that was not the account I created the firebase account with.
As soon as I logged in to my firebase account in android studio it asked to sync and it worked fine

You will receive this error if you have open different accounts between Android Studio and Firebase. Because the Firebase assistant attempts to contact the Firebase service with your account registered in Android Studio. You can resolve this error by selecting the Add account option in Android Studio.

Related

When i open up a new application its already connected to a firebase account which is i don't have access to

When I open up a new application it's already connected to a Firebase account which I don't have access, is it possible to connect it to a new project using a new account and not with the one to which I lost access?
I tried to connect my new app with Firebase Realtime Database and it says connected already to a project that I created on my account which I already deleted.
Can you guys help me how to figure this out? Thanks
Is it possible to connect it to a new project using a new account and not with the one to which I lost access?
For sure there is. You have to create a new Firebase project, download the google-services.json file and add it to your app folder inside your project. Right after that, you can try to connect to Firebase using the assistant as explained in the official documentation:
https://firebase.google.com/docs/android/setup#assistant
In the URL above, you can also see at the top of the page, how you can manually add Firebase to your Android project. Which I personally recommend, because it offers more control on the setup workflow.

OAuth consent screen blank in android app with Google Fit

I'm trying to use the Google Fit API in my application, after the user is prompted to choose a Google account the OAuth consent screen should be displayed, however I only get a blank popup with a indefinite loading indicator, this popup will stay like that unless I cancel it.
Image of the popup
No error messages are displayed, only if I cancel the sign-in flow I would get an error that I cancelled it.
I have tried on a personal proyect as well as with Google's sample proyect, where other users are also experiencing the same issue.
As I describe on that issue, I have tested both apps on an emulator, a Huawei Pro 20 Lite, and on another device, with four different accounts, but get the same result.
Also have the correct configuration in the Google Cloud Console, using the proper applicationId and SHA1 signing key, I've tried on two different cloud projects, one of them brand new.
The function that launches the sign-in flow is this one, the full code from the sample app can be found here
GoogleSignIn.requestPermissions(
this,
requestCode.ordinal,
getGoogleAccount(), fitnessOptions)
Thanks for any help.
I found a solution, it strange but anyway it works for me:
Delete your Cloud project
Instead of the following instructions from http://developers.google.com/fit/android/get-started create a new project with firebase.
Add an android app in firebase project settings
Add both the SHA1 and SHA256 to it.
Download google-services.json to android/app in your project folder.
Make sure to have my "support email" set on general Project settings.
If this not help, please also check Flutter and google_sign_in plugin: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)
Guys have a similar problem with GoogleSignIn
Follow the instructions at http://developers.google.com/fit/android/get-started for registering an Android client.
Ensure that the Fit API is enabled for your Cloud project.
Check your credentials for your Cloud project:
Ensure that your package name for your credentials matches the sample.
Ensure the package name matches the applicationId in the app/build.gradle file.
Ensure the Signing-certificate fingerprint is entered correctly.
Additionally from OAuthConsentScreen add test users and set User Type to external

Connecting Android app with web (and using the same database) [duplicate]

Is it possible for multiple android applications to access a single firebase backend. If no what is the alternative in such situation?
Yes, it is possible. Go to your firebase console. Select home tab. Click on Add App. Select Add firebase to your Android App. Provide the necessary details for the package name. Download the latest config file and add it to all the android apps connected to this firebase project.
Yes, you only need to setup your Firebase object with the same url(db).
Check the documentation for more. https://www.firebase.com/docs/android/guide/retrieving-data.html
With Android Studio 2.2 and upwards you can easily create and add apps to you Firebase project without leaving your work environment and no need to download google-services.json
From Android Studio go to Tools->Firebase and create, add apps to project of choice :)
Guide
Yes, it is possible for multiple applications to access the same Firebase Database.
From Android Studio v2.2 onwards, you can directly link an app to a Firebase database via the Firebase Assistant.
Here is how to do so:
Go to Tools and click on the Firebase option.
From the Firebase Assistant, select Realtime Database
Click on the Connect to Firebase button in the Assistant, which will show you a dialog allowing you to select an existing Database or create a new database. Click on Choose an existing Firebase project, select the Database you want to use and click on the Connect to Firebase button in the dialog.
Your app will automatically get connected and you will be able to access your database.
In the firebase console you’ll be having the option to connect the firebase to corresponding platform and it’s configuration. You can use that to add same firebase project to any desired platform.
Yes, it is! a single firebase database can be access by multiple app.. provided each of your apps use the same authentication details. The Firebase documentation will be a big help. https://firebase.google.com/docs/
I have 2 of my app accessing 1 firebase database account, so, i am quite sure it will work for you my friend!
Yes, You can use the same firebase database in more than one android application as below:
In the Project Overview section of Firebase Console add an android application.
For adding this application first you need to give that package name.
Download config file in JSON format.
Note: you must be download a new copy of JSON because in that JSON
file included package name of your application and all.
Add some repository and implementation in both(Project/Module) build.gradle file.
Ready to access firebase database in new android application.
Click Add App Button and first option Choose your App platform.
Second step Register you application paste your app package name.
And third step download the google config file the file paste your
project's app folder and start your second application.

Firebase connection failes with no reason at all

I have some project in Android Studio 3.0 Beta 7 which uses Firebase. Now, I've registered app in Firebase Console` and when I try to connect to Firebase from Android Studio Firebase plugin, I get following error:
Firebase: No clients were able to be added to your Firebase project for the following reasons:
Here is screenshot:
The reason part of message IS EMPTY and I do not know what is wrong. I am doing this for the first time and I humbly ask for understanding.
#kernelPanic you should connect your application to firebase as shown in the image it seems that you haven't connected your app to firebase
as in the image on the right side there is only a green tick mark that shows that you have added the dependencies of firebase but haven't connected the app..
click on the button "CONNECT TO FIREBASE" on right side.

Dropbox Syncing Issue with android application

I follow the steps provided at https://www.dropbox.com/developers/datastore/tutorial/android for the synchronization of my android application with Dropbox. On pressing the Linktodropbox Button it the app navigates me to sign in page of dropbox. when i enter my credentials it gives me an error
ERROR: "This app cannot be used with the Sync Api"
I changed the App_key and App_password with my app's key and app's passwords provided to me by dropbox. Can anybody me in this regard. thanks in anticipation
This most likely means you're trying to use an app with Full Dropbox permission. The Sync API only supports App folder and File type permissions.
I had the same problem, i just restarted my app and it worked all good
I also had the problem, but I go to Google Play, download Dropbox and install it to device then I can login to dropbox by my app
To resolve this error you must to do the right choice. Go https://www.dropbox.com/developers/apps/create. When you register your dropbox application at the step 4 ("What type of files does your app need access to?") select the "Specific file types" and your issue resolves. For more questions to create apps Android studio based write me. Thanks.

Categories

Resources