Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to resolve: firebase-database-15.0.0

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

like image 461
Sadi Khan Avatar asked Oct 01 '18 06:10

Sadi Khan


1 Answers

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

like image 121
Guy4444 Avatar answered Sep 24 '22 09:09

Guy4444