Connecting Firebase to Android studio





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















Apologies if this has been asked before but I am trying to build on a previous answer.



Given an error Failed to resolve: firebase-auth-15.0.0



The general solution seems to be to remove the numbers within the implementation:



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-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.0.5'
}


Changing



implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.1'



to



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



This solves the sync problem and allows for Gradle build finished



but in the Firebase menu (2) doesn't say it's added successfully:



enter image description here



Why? Is it fine working like this?





Entire build.gradle





apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.cal.thou"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

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-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.5'
}









share|improve this question




















  • 2





    Have you also added implementation 'com.google.firebase:firebase-core:16.0.5'?

    – Alex Mamo
    Nov 23 '18 at 13:31











  • @AlexMamo Within dependencies? I haven't, why would I need this? Apologies complete newbie to this

    – Awkward Panda
    Nov 23 '18 at 13:33











  • Yes, within dependencies. Because is mandatory to have it. Does it work?

    – Alex Mamo
    Nov 23 '18 at 13:34













  • If you app builds and runs OK, it doesn't matter what the plugin tells you.

    – Doug Stevenson
    Nov 23 '18 at 13:35











  • @AlexMamo The Gradle build finished fine but the Firebase window is still showing 'Add Cloud Storage to your app'

    – Awkward Panda
    Nov 23 '18 at 13:35


















1















Apologies if this has been asked before but I am trying to build on a previous answer.



Given an error Failed to resolve: firebase-auth-15.0.0



The general solution seems to be to remove the numbers within the implementation:



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-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.0.5'
}


Changing



implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.1'



to



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



This solves the sync problem and allows for Gradle build finished



but in the Firebase menu (2) doesn't say it's added successfully:



enter image description here



Why? Is it fine working like this?





Entire build.gradle





apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.cal.thou"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

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-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.5'
}









share|improve this question




















  • 2





    Have you also added implementation 'com.google.firebase:firebase-core:16.0.5'?

    – Alex Mamo
    Nov 23 '18 at 13:31











  • @AlexMamo Within dependencies? I haven't, why would I need this? Apologies complete newbie to this

    – Awkward Panda
    Nov 23 '18 at 13:33











  • Yes, within dependencies. Because is mandatory to have it. Does it work?

    – Alex Mamo
    Nov 23 '18 at 13:34













  • If you app builds and runs OK, it doesn't matter what the plugin tells you.

    – Doug Stevenson
    Nov 23 '18 at 13:35











  • @AlexMamo The Gradle build finished fine but the Firebase window is still showing 'Add Cloud Storage to your app'

    – Awkward Panda
    Nov 23 '18 at 13:35














1












1








1








Apologies if this has been asked before but I am trying to build on a previous answer.



Given an error Failed to resolve: firebase-auth-15.0.0



The general solution seems to be to remove the numbers within the implementation:



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-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.0.5'
}


Changing



implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.1'



to



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



This solves the sync problem and allows for Gradle build finished



but in the Firebase menu (2) doesn't say it's added successfully:



enter image description here



Why? Is it fine working like this?





Entire build.gradle





apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.cal.thou"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

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-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.5'
}









share|improve this question
















Apologies if this has been asked before but I am trying to build on a previous answer.



Given an error Failed to resolve: firebase-auth-15.0.0



The general solution seems to be to remove the numbers within the implementation:



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-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.0.5'
}


Changing



implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.1'



to



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



This solves the sync problem and allows for Gradle build finished



but in the Firebase menu (2) doesn't say it's added successfully:



enter image description here



Why? Is it fine working like this?





Entire build.gradle





apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.cal.thou"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

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-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.5'
}






android firebase android-studio






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 13:47







Awkward Panda

















asked Nov 23 '18 at 13:30









Awkward PandaAwkward Panda

1042




1042








  • 2





    Have you also added implementation 'com.google.firebase:firebase-core:16.0.5'?

    – Alex Mamo
    Nov 23 '18 at 13:31











  • @AlexMamo Within dependencies? I haven't, why would I need this? Apologies complete newbie to this

    – Awkward Panda
    Nov 23 '18 at 13:33











  • Yes, within dependencies. Because is mandatory to have it. Does it work?

    – Alex Mamo
    Nov 23 '18 at 13:34













  • If you app builds and runs OK, it doesn't matter what the plugin tells you.

    – Doug Stevenson
    Nov 23 '18 at 13:35











  • @AlexMamo The Gradle build finished fine but the Firebase window is still showing 'Add Cloud Storage to your app'

    – Awkward Panda
    Nov 23 '18 at 13:35














  • 2





    Have you also added implementation 'com.google.firebase:firebase-core:16.0.5'?

    – Alex Mamo
    Nov 23 '18 at 13:31











  • @AlexMamo Within dependencies? I haven't, why would I need this? Apologies complete newbie to this

    – Awkward Panda
    Nov 23 '18 at 13:33











  • Yes, within dependencies. Because is mandatory to have it. Does it work?

    – Alex Mamo
    Nov 23 '18 at 13:34













  • If you app builds and runs OK, it doesn't matter what the plugin tells you.

    – Doug Stevenson
    Nov 23 '18 at 13:35











  • @AlexMamo The Gradle build finished fine but the Firebase window is still showing 'Add Cloud Storage to your app'

    – Awkward Panda
    Nov 23 '18 at 13:35








2




2





Have you also added implementation 'com.google.firebase:firebase-core:16.0.5'?

– Alex Mamo
Nov 23 '18 at 13:31





Have you also added implementation 'com.google.firebase:firebase-core:16.0.5'?

– Alex Mamo
Nov 23 '18 at 13:31













@AlexMamo Within dependencies? I haven't, why would I need this? Apologies complete newbie to this

– Awkward Panda
Nov 23 '18 at 13:33





@AlexMamo Within dependencies? I haven't, why would I need this? Apologies complete newbie to this

– Awkward Panda
Nov 23 '18 at 13:33













Yes, within dependencies. Because is mandatory to have it. Does it work?

– Alex Mamo
Nov 23 '18 at 13:34







Yes, within dependencies. Because is mandatory to have it. Does it work?

– Alex Mamo
Nov 23 '18 at 13:34















If you app builds and runs OK, it doesn't matter what the plugin tells you.

– Doug Stevenson
Nov 23 '18 at 13:35





If you app builds and runs OK, it doesn't matter what the plugin tells you.

– Doug Stevenson
Nov 23 '18 at 13:35













@AlexMamo The Gradle build finished fine but the Firebase window is still showing 'Add Cloud Storage to your app'

– Awkward Panda
Nov 23 '18 at 13:35





@AlexMamo The Gradle build finished fine but the Firebase window is still showing 'Add Cloud Storage to your app'

– Awkward Panda
Nov 23 '18 at 13:35












0






active

oldest

votes












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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53447631%2fconnecting-firebase-to-android-studio%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53447631%2fconnecting-firebase-to-android-studio%23new-answer', 'question_page');
}
);

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







這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()