Failed to resolve: firebase-database-15.0.0

Sadi Khan 10/01/2018. 7 answers, 3.962 views
android android firebase firebase firebase-realtime-database build.gradle

connecting firebase real-time database with assistant when adding the dependencies of firebase database this error is showing:

Failed to resolve: firebase-database-15.0.0

this also happened with authentication

My android studio version 3.2 build September 18

enter image description here

7 Answers


Nishan Chathuranga 11/11/2018.

Remove,

implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'

Add following lines and sync project.

implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.5'

Guy4444 12/03/2018.

There's an annoying bug in the new versions of Android Studio (I've seen versions 3.2.1 or higher on both Windows and Mac). if you integrate firebase automatically from tools, Thןד gives you an unwanted add-on that de-compile the program.

for example:

implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'

instead of:

implementation 'com.google.firebase:firebase-database:16.0.1'

Just drop the unnecessary extra after the ':'

Note that the example is for a database If you need something else substitute the word database in your library, for example ads.

enter image description here


Mohsen 10/01/2018.

Update your gradle in the root Build.gradle first:

classpath 'com.android.tools.build:gradle:3.2.0'

Then use & update this in the app/Build.gradle dependencies:

implementation com.google.firebase:firebase-database:16.0.2

I believe you're trying to download another non-exist dependency, that's why you get the error:

Failed to resolve: firebase-database-15.0.0

Check: https://mvnrepository.com/artifact/com.google.firebase/firebase-database/16.0.2

And here: https://firebase.google.com/docs/android/setup


PHILL BOOTH 10/01/2018.

I get a issue like this sometimes, 1)restart the PC, or 2) delete C:\Users\.gradle and then restart the machine.

If you are using ionic then delete the .ionic as well.


Alex Mamo 10/01/2018.

You are getting the following error:

Failed to resolve: firebase-database-15.0.0

Because you are using a wrong dependency in your code. To solve this, please change the following line of code:

implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'

to

implementation 'com.google.firebase:firebase-database:16.0.2'

Because such a version 16.0.1:15.0.0 does not exist.

Please also add the following dependency which is now mandatory:

    implementation 'com.google.firebase:firebase-core:16.0.3'

Your app gradle file now has to explicitly list com.google.firebase:firebase-core as a dependency for Firebase services to work as expected.

In your top level build.gradle file please be sure to have the latest version of Google Service plugin:

classpath 'com.google.gms:google-services:4.1.0'

Indra Bhurtel 11/16/2018.

You can update this in the app/Build Gradle dependencies:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.google.firebase:firebase-core:16.0.3'
    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:15.0.0'
}
apply plugin: 'com.google.gms.google-services'

This must help you to get rid of the error!


Waliullah 11/11/2018.

I had this same problem. but now worked for me.Try This add the dependency for Authentication to your app-level build.gradle file.

implementation 'com.google.firebase:firebase-auth:16.0.3'

When you click on add dependency this again ask you add the statement implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.0' So This button does not need to be triggered to authenticate the app.


HighResolutionMusic.com - Download Hi-Res Songs

1 Alan Walker

On My Way flac

Alan Walker. 2019. Writer: Alan Walker;Sabrina Carpenter;Farruko.
2 CHVRCHES

Here With Me flac

CHVRCHES. 2019. Writer: Steve Mac;Martin Doherty;Marshmello;Lauren Mayberry;Iain Cook.
3 5 Seconds Of Summer

Who Do You Love flac

5 Seconds Of Summer. 2019. Writer: Andrew Taggart;Talay Riley;Oak;Sean Douglas;Luke Hemmings;Calum Hood;Ashton Irwin;Michael Clifford;Trevorious;Zaire Koalo.
4 Bonn

No Sleep flac

Bonn. 2019. Writer: Albin Nedler;Bonn;Martin Garrix.
5 Avril Lavigne

Crush flac

Avril Lavigne. 2019. Writer: Johan Carlsson;Avril Lavigne;Zane Carney.
6 Katy Perry

365 flac

Katy Perry. 2019. Writer: Zedd;Katy Perry;Caroline Ailin;Corey Sanders;Daniel Davidsen;Cutfather;Peter Wallevik.
7 Alan Walker

Are You Lonely flac

Alan Walker. 2019.
8 Jonas Brothers

Sucker flac

Jonas Brothers. 2019. Writer: Kevin Jonas;Joe Jonas;Nick Jonas;Ryan Tedder;Louis Bell;Frank Dukes.
9 Brooks

Better When You're Gone flac

Brooks. 2019. Writer: David Guetta;Emma Lov Block;Ido Zmishlany;Jackson Foote;Jeremy Dussolliet;Brooks.
10 Dido

Hurricanes flac

Dido. 2019. Writer: Dido;Rick Nowels;Rollo Armstrong.
11 DEAMN

Happy flac

DEAMN. 2019.
12 Ariana Grande

Bloodline flac

Ariana Grande. 2019. Writer: ILYA;Max Martin;Savan Kotecha;Ariana Grande.
13 IZ*ONE

Rise flac

IZ*ONE. 2019.
14 Avril Lavigne

Dumb Blonde flac

Avril Lavigne. 2019. Writer: Mitch Allan;Bonnie McKee;Nicki Minaj;Avril Lavigne.
15 Little Big Town

Don't Threaten Me With A Good Time flac

Little Big Town. 2019. Writer: Thomas Rhett;Karen Fairchild;The Stereotypes;Jesse Frasure;Ashley Gorley.
16 Ariana Grande

Make Up flac

Ariana Grande. 2019. Writer: Brian Malik Baptiste;Tayla Parx;TBHits;Victoria Monét;Ariana Grande.
17 Dzeko

Halfway There flac

Dzeko. 2019.
18 Ariana Grande

Imagine flac

Ariana Grande. 2019. Writer: JProof;Priscilla Renea;Happy Perez;Andrew "Pop" Wansel;Ariana Grande.
19 Ariana Grande

NASA flac

Ariana Grande. 2019. Writer: Ariana Grande;Scootie;Tayla Parx;TBHits;Victoria Monét.
20 Ariana Grande

Thank U, Next flac

Ariana Grande. 2019. Writer: Crazy Mike;Scootie;Victoria Monét;Tayla Parx;TBHits;Ariana Grande.

Related questions

Hot questions

Language

Popular Tags