failed to resolve : Firebase auth 15.0.0 - android

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.firebase:firebase-client-android:2.5.2+'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.android.volley:volley:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.0'
}
I don't know but the error only shows the appcompat 28.0.0 won't work.

Change
this, implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.0'
to this, implementation 'com.google.firebase:firebase-auth:16.0.1'
and better, update all dependencies to the latest versions

The following dependency is put in by the Firebase Assistant to "Add Firebase Authentication to the App"
implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.0'
If you remove 15.0.0, and make it
implementation 'com.google.firebase:firebase-auth:16.0.1'
that automatically removes Firebase Authentication in the Firebase Assistant, beating the whole purpose. Also if you change to the '...firebase-auth:16.0.1:15.0.0' to the latest version '...firebase-auth:16.1.0:15.0.0', nothing happens to the error, as it is due to the '15.0.0' part.
This is probably a blocker bug from Firebase or Google side, which could be only corrected by them. Hope this catches their attention soon. Otherwise all new developments using this version of Firebase Auth or Database will be stalled. Older versions may be working though.

Related

Why I am getting this "Could not find com.google.firebase:firebase-core:16.1.0." error all the time?

I am really fed up of these stupid android studio errors, the thing is I have included the implementation com.google.firebase:firebase-core:16.1.0 dependency in my build.gradle file but still am getting the error that says :::
Could not find com.google.firebase:firebase-core:16.1.0.
Also if I try to change it from 16.1.0 to 16.0.1 still error continues. How to fix this issue I have built almost 80% of my app and now when I just created new activity it is showing this error, I also deleted the activity but still issue continues. What is the fix for this? Thanks in advance!!
classpath 'com.google.gms:google-services:4.0.1'
And here is my Gradle file:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.github.ittianyu:BottomNavigationViewEx:2.0.2'
implementation 'me.anwarshahriar:calligrapher:1.0'
implementation 'com.firebaseui:firebase-ui-database:4.3.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.firebase:firebase-core:16.1.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
}
Could not find com.google.firebase:firebase-core:16.1.0"
It happens because firebase-core:16.1.0 doesn't exist (today).
You can check the latest version here. Currently it is 16.0.7
Firebase Core com.google.firebase:firebase-core:16.0.7
Change your dependency in:
implementation 'com.google.firebase:firebase-core:16.0.7'

How to implement firebase authentication in Android

I am unable to use firebase authentication in my app.My android version of appcomat does not support this version of firebase
I have reduced the app version from 28.0.0 to 27.0.0
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.google.firebase:firebase-core:16.0.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:3.0.2'
}
try to use the latest SDK for auth and core,
com.google.firebase:firebase-core:16.0.6
com.google.firebase:firebase-auth:16.1.0
Firebase release notes
I got solution for this problem --
1) Add a line in build.gradle(app) depedencies:-
implementation 'com.android.support:support-v4:28.0.0'
Look at the picture
2) update in the build.gradle(project) dependencies:-
update classpath of google service from 4.1.0 to 4.2.0
update google service

Sync error while syncing firebase database with app

I used the firebase tool available in android studio to sync my app with firebase database. After connecting to firebase, I had to add realtime database. Sync failed and the following error showed.:
Failed to resolve: firebase-database-15.0.0
The line:
implementation 'com.android.support:appcompat-v7:28.0.0'
Has red underline and when I hover the mouse over it, it shows all android.support libraries must have same exact version specification.
The sync is failing, although I am using the assistant to add the dependencies Why is it so?
I searched on google where it said to change :
implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'
to :
implementation 'com.google.firebase:firebase-database:16.0.1'
But doing so removes the database from the app.The dependencies are:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'
}
i had faced the same issue before .If their is the update available then update your android it will fix it.
from my experience when i use the assistant to add the dependencies then it comes like this
implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0' but the it is not correct update it with this
implementation 'com.google.firebase:firebase-database:16.0.1' or
implementation 'com.google.firebase:firebase-database:15.0.0' or this
maybe this will help you

How to use implementation 'com.google.firebase:firebase-auth:16.0.3:15.0.0' not work

I use the latest version of Android Studio 3.2 & Plugin. When I try to connect firebase it show me to add dependencies -implementation 'com.google.firebase:firebase-auth:16.0.3:15.0.0' for Firebase authentication | implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0' for Realtime Database | implementation 'com.google.firebase:firebase-storage:16.0.1:15.0.0' for Cloud Storage
When using these dependencies it connect Firebase properly but Sync Failed. How to Use these dependencies?
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.3:15.0.0'
implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'
implementation 'com.google.firebase:firebase-storage:16.0.1:15.0.0'
}
apply plugin: 'com.google.gms.google-services'
I had faced the same issue before. If there is the update available then update your android it will fix it. from my experience when I use the assistant to add the dependencies then it comes like this
implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'
but the it is not correct update it with this
implementation 'com.google.firebase:firebase-database:16.0.1'
or
implementation 'com.google.firebase:firebase-database:15.0.0'
or this
maybe this will help you
here is official documentation for help
Update you firebase dependencies like this:
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'
Basically, remove the last ":15.0.0" part. You probably copied these from the firebase website and made a mistake while pasting

Google Play Services and Firebase conflicts

I want to use both firebase and google play services dependencies. But it causes some conflictings. When i add the play services dependency, then firebase dependency does not work. Do you know how to use both dependencies at the same time? Thank you.
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:26.1.0'
implementation 'com.google.firebase:firebase-core:12.0.1'
implementation 'com.google.firebase:firebase-messaging:12.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.google.android.gms:play-services:11.8.0'
Change this:
implementation 'com.google.android.gms:play-services:11.8.0'
into this:
implementation 'com.google.android.gms:play-services:12.0.1'
Versions of com.google.android.gms:* and com.google.firebase:* dependencies prior to 15.0.0 had to be at the same version. After 15.0.0, this is no longer the case. See https://developers.google.com/android/guides/versioning for more details.
It should be noted, you should also no longer use the com.google.android.gms:play-services catch-all monolithic target as this includes all Google Play services and Firebase libraries into your project, bloating your app unnecessarily as you are unlikely to need to use all targets. This usage had been discouraged for some time and was actually removed in v15.0.0 (https://developers.google.com/android/guides/releases#april_12_2018_-_version_1500)

Categories

Resources