Adding realtime database to my app on android studio - Failed to resolve: firebase-database-15.0.0
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
i've been working with firebase to access an activity on my project. Everything works fine, no compilation errors. However after i go to tools > firebase i can connect to my app easily, however when i try to click Add Real time database it shows me this:
build.gradle will include these new dependencies:
compile 'com.google.firebase:firebase-database:16.0.1:15.0.0'
Since compile is deprecated i use implementation, and when i do
Implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'
i get the following error Failed to resolve: firebase-database-15.0.0
and my sync fails.
android firebase
|
show 2 more comments
i've been working with firebase to access an activity on my project. Everything works fine, no compilation errors. However after i go to tools > firebase i can connect to my app easily, however when i try to click Add Real time database it shows me this:
build.gradle will include these new dependencies:
compile 'com.google.firebase:firebase-database:16.0.1:15.0.0'
Since compile is deprecated i use implementation, and when i do
Implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'
i get the following error Failed to resolve: firebase-database-15.0.0
and my sync fails.
android firebase
turn off your gradle offline sync option and try again
– Rohit Suthar
Jul 28 '18 at 1:34
Thanks for replying dude, but tell me how do i do that, and which firebase version should i use? 16.0.1:15.0.0 or the current one?
– John Jones
Jul 28 '18 at 1:36
com.google.firebase:firebase-database:16.0.1
– Rohit Suthar
Jul 28 '18 at 1:38
go to settings->build and execution->gradle->uncheck offline work option and click ok.....
– Rohit Suthar
Jul 28 '18 at 1:38
it was already unchecked, and also it didn't work. by setting it to implementation 'com.google.firebase:firebase-database:16.0.1' it tells me to change to 16.0.1:15.0.0, again...
– John Jones
Jul 28 '18 at 1:44
|
show 2 more comments
i've been working with firebase to access an activity on my project. Everything works fine, no compilation errors. However after i go to tools > firebase i can connect to my app easily, however when i try to click Add Real time database it shows me this:
build.gradle will include these new dependencies:
compile 'com.google.firebase:firebase-database:16.0.1:15.0.0'
Since compile is deprecated i use implementation, and when i do
Implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'
i get the following error Failed to resolve: firebase-database-15.0.0
and my sync fails.
android firebase
i've been working with firebase to access an activity on my project. Everything works fine, no compilation errors. However after i go to tools > firebase i can connect to my app easily, however when i try to click Add Real time database it shows me this:
build.gradle will include these new dependencies:
compile 'com.google.firebase:firebase-database:16.0.1:15.0.0'
Since compile is deprecated i use implementation, and when i do
Implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'
i get the following error Failed to resolve: firebase-database-15.0.0
and my sync fails.
android firebase
android firebase
asked Jul 28 '18 at 1:28
John JonesJohn Jones
5119
5119
turn off your gradle offline sync option and try again
– Rohit Suthar
Jul 28 '18 at 1:34
Thanks for replying dude, but tell me how do i do that, and which firebase version should i use? 16.0.1:15.0.0 or the current one?
– John Jones
Jul 28 '18 at 1:36
com.google.firebase:firebase-database:16.0.1
– Rohit Suthar
Jul 28 '18 at 1:38
go to settings->build and execution->gradle->uncheck offline work option and click ok.....
– Rohit Suthar
Jul 28 '18 at 1:38
it was already unchecked, and also it didn't work. by setting it to implementation 'com.google.firebase:firebase-database:16.0.1' it tells me to change to 16.0.1:15.0.0, again...
– John Jones
Jul 28 '18 at 1:44
|
show 2 more comments
turn off your gradle offline sync option and try again
– Rohit Suthar
Jul 28 '18 at 1:34
Thanks for replying dude, but tell me how do i do that, and which firebase version should i use? 16.0.1:15.0.0 or the current one?
– John Jones
Jul 28 '18 at 1:36
com.google.firebase:firebase-database:16.0.1
– Rohit Suthar
Jul 28 '18 at 1:38
go to settings->build and execution->gradle->uncheck offline work option and click ok.....
– Rohit Suthar
Jul 28 '18 at 1:38
it was already unchecked, and also it didn't work. by setting it to implementation 'com.google.firebase:firebase-database:16.0.1' it tells me to change to 16.0.1:15.0.0, again...
– John Jones
Jul 28 '18 at 1:44
turn off your gradle offline sync option and try again
– Rohit Suthar
Jul 28 '18 at 1:34
turn off your gradle offline sync option and try again
– Rohit Suthar
Jul 28 '18 at 1:34
Thanks for replying dude, but tell me how do i do that, and which firebase version should i use? 16.0.1:15.0.0 or the current one?
– John Jones
Jul 28 '18 at 1:36
Thanks for replying dude, but tell me how do i do that, and which firebase version should i use? 16.0.1:15.0.0 or the current one?
– John Jones
Jul 28 '18 at 1:36
com.google.firebase:firebase-database:16.0.1
– Rohit Suthar
Jul 28 '18 at 1:38
com.google.firebase:firebase-database:16.0.1
– Rohit Suthar
Jul 28 '18 at 1:38
go to settings->build and execution->gradle->uncheck offline work option and click ok.....
– Rohit Suthar
Jul 28 '18 at 1:38
go to settings->build and execution->gradle->uncheck offline work option and click ok.....
– Rohit Suthar
Jul 28 '18 at 1:38
it was already unchecked, and also it didn't work. by setting it to implementation 'com.google.firebase:firebase-database:16.0.1' it tells me to change to 16.0.1:15.0.0, again...
– John Jones
Jul 28 '18 at 1:44
it was already unchecked, and also it didn't work. by setting it to implementation 'com.google.firebase:firebase-database:16.0.1' it tells me to change to 16.0.1:15.0.0, again...
– John Jones
Jul 28 '18 at 1:44
|
show 2 more comments
2 Answers
2
active
oldest
votes
add jcenter()
in your project-level gradle.
allprojects
repositories
google()
jcenter()
and keep remaining as @Tomin B said.
i already have it brother, both on allprojects and buildscript, let me explain again, i need to authenticate/add real time database, but i can't. it tells me to "Accept change", but if i accept the change nothing is changed and i receive log errors. Because otherwise, whenever i try to login it returns INVALID_PASSWORD and gives me auth errors on logcat
– John Jones
Jul 28 '18 at 4:17
@PublioElon i think i didn't understood your problem, as per your above comment i understood that you are trying to add firebase database dependency in you android studio using firebase assistance. but i am not able to get where you are trying to login and what error log you are getting can post?
– Rohit Maurya
Jul 28 '18 at 4:48
dude, i dont even know how to say it, i just feel like im illiterate, reason why it wasn't working was because when referring to the new intent, i misstyped the intent name and didnt notice, i spent 7 hours, trying to look up on the internet for mistakes, when it was all along, i feel so stupid...
– John Jones
Jul 28 '18 at 5:07
add a comment |
Change Root Gradle to
buildscript
// ...
dependencies
// ...
classpath 'com.google.gms:google-services:4.0.1' // google-services plugin
allprojects
// ...
repositories
// ...
google() // Google's Maven repository
And App Gradle To
apply plugin: 'com.android.application'
android
// ...
dependencies
// ...
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
// Getting a "Could not find" error? Make sure you have
// added the Google maven respository to your root build.gradle
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
Hope This May Help You
i already have those settings from previous research, still nothing. This is how my gradle app is: implementation 'com.google.firebase:firebase-core:16.0.1 'implementation 'com.google.firebase:firebase-database:16.0.1' implementation 'com.google.firebase:firebase-auth:16.0.1' as for dependencies on classpath... classpath 'com.google.gms:google-services:4.0.1'
– John Jones
Jul 28 '18 at 1:55
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51567285%2fadding-realtime-database-to-my-app-on-android-studio-failed-to-resolve-fireba%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
add jcenter()
in your project-level gradle.
allprojects
repositories
google()
jcenter()
and keep remaining as @Tomin B said.
i already have it brother, both on allprojects and buildscript, let me explain again, i need to authenticate/add real time database, but i can't. it tells me to "Accept change", but if i accept the change nothing is changed and i receive log errors. Because otherwise, whenever i try to login it returns INVALID_PASSWORD and gives me auth errors on logcat
– John Jones
Jul 28 '18 at 4:17
@PublioElon i think i didn't understood your problem, as per your above comment i understood that you are trying to add firebase database dependency in you android studio using firebase assistance. but i am not able to get where you are trying to login and what error log you are getting can post?
– Rohit Maurya
Jul 28 '18 at 4:48
dude, i dont even know how to say it, i just feel like im illiterate, reason why it wasn't working was because when referring to the new intent, i misstyped the intent name and didnt notice, i spent 7 hours, trying to look up on the internet for mistakes, when it was all along, i feel so stupid...
– John Jones
Jul 28 '18 at 5:07
add a comment |
add jcenter()
in your project-level gradle.
allprojects
repositories
google()
jcenter()
and keep remaining as @Tomin B said.
i already have it brother, both on allprojects and buildscript, let me explain again, i need to authenticate/add real time database, but i can't. it tells me to "Accept change", but if i accept the change nothing is changed and i receive log errors. Because otherwise, whenever i try to login it returns INVALID_PASSWORD and gives me auth errors on logcat
– John Jones
Jul 28 '18 at 4:17
@PublioElon i think i didn't understood your problem, as per your above comment i understood that you are trying to add firebase database dependency in you android studio using firebase assistance. but i am not able to get where you are trying to login and what error log you are getting can post?
– Rohit Maurya
Jul 28 '18 at 4:48
dude, i dont even know how to say it, i just feel like im illiterate, reason why it wasn't working was because when referring to the new intent, i misstyped the intent name and didnt notice, i spent 7 hours, trying to look up on the internet for mistakes, when it was all along, i feel so stupid...
– John Jones
Jul 28 '18 at 5:07
add a comment |
add jcenter()
in your project-level gradle.
allprojects
repositories
google()
jcenter()
and keep remaining as @Tomin B said.
add jcenter()
in your project-level gradle.
allprojects
repositories
google()
jcenter()
and keep remaining as @Tomin B said.
answered Jul 28 '18 at 4:06
Rohit MauryaRohit Maurya
3921210
3921210
i already have it brother, both on allprojects and buildscript, let me explain again, i need to authenticate/add real time database, but i can't. it tells me to "Accept change", but if i accept the change nothing is changed and i receive log errors. Because otherwise, whenever i try to login it returns INVALID_PASSWORD and gives me auth errors on logcat
– John Jones
Jul 28 '18 at 4:17
@PublioElon i think i didn't understood your problem, as per your above comment i understood that you are trying to add firebase database dependency in you android studio using firebase assistance. but i am not able to get where you are trying to login and what error log you are getting can post?
– Rohit Maurya
Jul 28 '18 at 4:48
dude, i dont even know how to say it, i just feel like im illiterate, reason why it wasn't working was because when referring to the new intent, i misstyped the intent name and didnt notice, i spent 7 hours, trying to look up on the internet for mistakes, when it was all along, i feel so stupid...
– John Jones
Jul 28 '18 at 5:07
add a comment |
i already have it brother, both on allprojects and buildscript, let me explain again, i need to authenticate/add real time database, but i can't. it tells me to "Accept change", but if i accept the change nothing is changed and i receive log errors. Because otherwise, whenever i try to login it returns INVALID_PASSWORD and gives me auth errors on logcat
– John Jones
Jul 28 '18 at 4:17
@PublioElon i think i didn't understood your problem, as per your above comment i understood that you are trying to add firebase database dependency in you android studio using firebase assistance. but i am not able to get where you are trying to login and what error log you are getting can post?
– Rohit Maurya
Jul 28 '18 at 4:48
dude, i dont even know how to say it, i just feel like im illiterate, reason why it wasn't working was because when referring to the new intent, i misstyped the intent name and didnt notice, i spent 7 hours, trying to look up on the internet for mistakes, when it was all along, i feel so stupid...
– John Jones
Jul 28 '18 at 5:07
i already have it brother, both on allprojects and buildscript, let me explain again, i need to authenticate/add real time database, but i can't. it tells me to "Accept change", but if i accept the change nothing is changed and i receive log errors. Because otherwise, whenever i try to login it returns INVALID_PASSWORD and gives me auth errors on logcat
– John Jones
Jul 28 '18 at 4:17
i already have it brother, both on allprojects and buildscript, let me explain again, i need to authenticate/add real time database, but i can't. it tells me to "Accept change", but if i accept the change nothing is changed and i receive log errors. Because otherwise, whenever i try to login it returns INVALID_PASSWORD and gives me auth errors on logcat
– John Jones
Jul 28 '18 at 4:17
@PublioElon i think i didn't understood your problem, as per your above comment i understood that you are trying to add firebase database dependency in you android studio using firebase assistance. but i am not able to get where you are trying to login and what error log you are getting can post?
– Rohit Maurya
Jul 28 '18 at 4:48
@PublioElon i think i didn't understood your problem, as per your above comment i understood that you are trying to add firebase database dependency in you android studio using firebase assistance. but i am not able to get where you are trying to login and what error log you are getting can post?
– Rohit Maurya
Jul 28 '18 at 4:48
dude, i dont even know how to say it, i just feel like im illiterate, reason why it wasn't working was because when referring to the new intent, i misstyped the intent name and didnt notice, i spent 7 hours, trying to look up on the internet for mistakes, when it was all along, i feel so stupid...
– John Jones
Jul 28 '18 at 5:07
dude, i dont even know how to say it, i just feel like im illiterate, reason why it wasn't working was because when referring to the new intent, i misstyped the intent name and didnt notice, i spent 7 hours, trying to look up on the internet for mistakes, when it was all along, i feel so stupid...
– John Jones
Jul 28 '18 at 5:07
add a comment |
Change Root Gradle to
buildscript
// ...
dependencies
// ...
classpath 'com.google.gms:google-services:4.0.1' // google-services plugin
allprojects
// ...
repositories
// ...
google() // Google's Maven repository
And App Gradle To
apply plugin: 'com.android.application'
android
// ...
dependencies
// ...
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
// Getting a "Could not find" error? Make sure you have
// added the Google maven respository to your root build.gradle
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
Hope This May Help You
i already have those settings from previous research, still nothing. This is how my gradle app is: implementation 'com.google.firebase:firebase-core:16.0.1 'implementation 'com.google.firebase:firebase-database:16.0.1' implementation 'com.google.firebase:firebase-auth:16.0.1' as for dependencies on classpath... classpath 'com.google.gms:google-services:4.0.1'
– John Jones
Jul 28 '18 at 1:55
add a comment |
Change Root Gradle to
buildscript
// ...
dependencies
// ...
classpath 'com.google.gms:google-services:4.0.1' // google-services plugin
allprojects
// ...
repositories
// ...
google() // Google's Maven repository
And App Gradle To
apply plugin: 'com.android.application'
android
// ...
dependencies
// ...
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
// Getting a "Could not find" error? Make sure you have
// added the Google maven respository to your root build.gradle
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
Hope This May Help You
i already have those settings from previous research, still nothing. This is how my gradle app is: implementation 'com.google.firebase:firebase-core:16.0.1 'implementation 'com.google.firebase:firebase-database:16.0.1' implementation 'com.google.firebase:firebase-auth:16.0.1' as for dependencies on classpath... classpath 'com.google.gms:google-services:4.0.1'
– John Jones
Jul 28 '18 at 1:55
add a comment |
Change Root Gradle to
buildscript
// ...
dependencies
// ...
classpath 'com.google.gms:google-services:4.0.1' // google-services plugin
allprojects
// ...
repositories
// ...
google() // Google's Maven repository
And App Gradle To
apply plugin: 'com.android.application'
android
// ...
dependencies
// ...
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
// Getting a "Could not find" error? Make sure you have
// added the Google maven respository to your root build.gradle
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
Hope This May Help You
Change Root Gradle to
buildscript
// ...
dependencies
// ...
classpath 'com.google.gms:google-services:4.0.1' // google-services plugin
allprojects
// ...
repositories
// ...
google() // Google's Maven repository
And App Gradle To
apply plugin: 'com.android.application'
android
// ...
dependencies
// ...
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
// Getting a "Could not find" error? Make sure you have
// added the Google maven respository to your root build.gradle
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
Hope This May Help You
answered Jul 28 '18 at 1:49
Tomin B AzhakathuTomin B Azhakathu
2,07011022
2,07011022
i already have those settings from previous research, still nothing. This is how my gradle app is: implementation 'com.google.firebase:firebase-core:16.0.1 'implementation 'com.google.firebase:firebase-database:16.0.1' implementation 'com.google.firebase:firebase-auth:16.0.1' as for dependencies on classpath... classpath 'com.google.gms:google-services:4.0.1'
– John Jones
Jul 28 '18 at 1:55
add a comment |
i already have those settings from previous research, still nothing. This is how my gradle app is: implementation 'com.google.firebase:firebase-core:16.0.1 'implementation 'com.google.firebase:firebase-database:16.0.1' implementation 'com.google.firebase:firebase-auth:16.0.1' as for dependencies on classpath... classpath 'com.google.gms:google-services:4.0.1'
– John Jones
Jul 28 '18 at 1:55
i already have those settings from previous research, still nothing. This is how my gradle app is: implementation 'com.google.firebase:firebase-core:16.0.1 'implementation 'com.google.firebase:firebase-database:16.0.1' implementation 'com.google.firebase:firebase-auth:16.0.1' as for dependencies on classpath... classpath 'com.google.gms:google-services:4.0.1'
– John Jones
Jul 28 '18 at 1:55
i already have those settings from previous research, still nothing. This is how my gradle app is: implementation 'com.google.firebase:firebase-core:16.0.1 'implementation 'com.google.firebase:firebase-database:16.0.1' implementation 'com.google.firebase:firebase-auth:16.0.1' as for dependencies on classpath... classpath 'com.google.gms:google-services:4.0.1'
– John Jones
Jul 28 '18 at 1:55
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51567285%2fadding-realtime-database-to-my-app-on-android-studio-failed-to-resolve-fireba%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
turn off your gradle offline sync option and try again
– Rohit Suthar
Jul 28 '18 at 1:34
Thanks for replying dude, but tell me how do i do that, and which firebase version should i use? 16.0.1:15.0.0 or the current one?
– John Jones
Jul 28 '18 at 1:36
com.google.firebase:firebase-database:16.0.1
– Rohit Suthar
Jul 28 '18 at 1:38
go to settings->build and execution->gradle->uncheck offline work option and click ok.....
– Rohit Suthar
Jul 28 '18 at 1:38
it was already unchecked, and also it didn't work. by setting it to implementation 'com.google.firebase:firebase-database:16.0.1' it tells me to change to 16.0.1:15.0.0, again...
– John Jones
Jul 28 '18 at 1:44