Firebase API Initialization failure Android+Firebase












1














Any One Please Help me
i am new to android development please help me..



I added a firebase recyclerview and firebaseui after that i am getting this error i don't know what to do



At my module's gradle file, I've added:



 compile 'com.google.firebase:firebase-auth:11.6.0' and 

'com.google.firebase:firebase-database:11.6.0'


Full Gradle files are provided below:




Top level gradle file




buildscript {

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'

classpath 'com.google.gms:google-services:3.1.1'
}
}

allprojects {

repositories {
google()
jcenter()
maven()
{
url "https://google.com"
}
}
}

task clean(type: Delete) {

delete rootProject.buildDir
}



Module Gradle file




apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.pachu.my_notification"
minSdkVersion 21
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(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
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:11.6.0'
implementation 'com.google.firebase:firebase-database:11.6.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.firebaseui:firebase-ui-database:4.2.1'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}

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









share|improve this question
























  • Sir how can i update google service plugin
    – Prashanth
    Nov 21 at 2:38
















1














Any One Please Help me
i am new to android development please help me..



I added a firebase recyclerview and firebaseui after that i am getting this error i don't know what to do



At my module's gradle file, I've added:



 compile 'com.google.firebase:firebase-auth:11.6.0' and 

'com.google.firebase:firebase-database:11.6.0'


Full Gradle files are provided below:




Top level gradle file




buildscript {

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'

classpath 'com.google.gms:google-services:3.1.1'
}
}

allprojects {

repositories {
google()
jcenter()
maven()
{
url "https://google.com"
}
}
}

task clean(type: Delete) {

delete rootProject.buildDir
}



Module Gradle file




apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.pachu.my_notification"
minSdkVersion 21
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(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
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:11.6.0'
implementation 'com.google.firebase:firebase-database:11.6.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.firebaseui:firebase-ui-database:4.2.1'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}

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









share|improve this question
























  • Sir how can i update google service plugin
    – Prashanth
    Nov 21 at 2:38














1












1








1







Any One Please Help me
i am new to android development please help me..



I added a firebase recyclerview and firebaseui after that i am getting this error i don't know what to do



At my module's gradle file, I've added:



 compile 'com.google.firebase:firebase-auth:11.6.0' and 

'com.google.firebase:firebase-database:11.6.0'


Full Gradle files are provided below:




Top level gradle file




buildscript {

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'

classpath 'com.google.gms:google-services:3.1.1'
}
}

allprojects {

repositories {
google()
jcenter()
maven()
{
url "https://google.com"
}
}
}

task clean(type: Delete) {

delete rootProject.buildDir
}



Module Gradle file




apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.pachu.my_notification"
minSdkVersion 21
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(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
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:11.6.0'
implementation 'com.google.firebase:firebase-database:11.6.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.firebaseui:firebase-ui-database:4.2.1'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}

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









share|improve this question















Any One Please Help me
i am new to android development please help me..



I added a firebase recyclerview and firebaseui after that i am getting this error i don't know what to do



At my module's gradle file, I've added:



 compile 'com.google.firebase:firebase-auth:11.6.0' and 

'com.google.firebase:firebase-database:11.6.0'


Full Gradle files are provided below:




Top level gradle file




buildscript {

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'

classpath 'com.google.gms:google-services:3.1.1'
}
}

allprojects {

repositories {
google()
jcenter()
maven()
{
url "https://google.com"
}
}
}

task clean(type: Delete) {

delete rootProject.buildDir
}



Module Gradle file




apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.pachu.my_notification"
minSdkVersion 21
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(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
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:11.6.0'
implementation 'com.google.firebase:firebase-database:11.6.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.firebaseui:firebase-ui-database:4.2.1'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}

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






android firebase firebase-realtime-database firebase-authentication firebaseui






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 18:29









Peter Haddad

20.3k84157




20.3k84157










asked Nov 20 at 18:23









Prashanth

153




153












  • Sir how can i update google service plugin
    – Prashanth
    Nov 21 at 2:38


















  • Sir how can i update google service plugin
    – Prashanth
    Nov 21 at 2:38
















Sir how can i update google service plugin
– Prashanth
Nov 21 at 2:38




Sir how can i update google service plugin
– Prashanth
Nov 21 at 2:38












1 Answer
1






active

oldest

votes


















0














According to the FirebaseUI docs:



As of version 4.2.1, FirebaseUI has the following dependency versions:



 Library          Version
firebase-auth 16.0.5
play-services-auth 16.0.1
firebase-database 16.0.3
firebase-firestore 17.1.1
firebase-storage 16.0.3


Therefore you need to update the firebase-database to version 16.0.3 and firebase-auth to version 16.0.5.



Also update the google service plugin to version 4.2.0






share|improve this answer





















  • Thank you sir
    – Prashanth
    Nov 21 at 16:50











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%2f53399230%2ffirebase-api-initialization-failure-androidfirebase%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














According to the FirebaseUI docs:



As of version 4.2.1, FirebaseUI has the following dependency versions:



 Library          Version
firebase-auth 16.0.5
play-services-auth 16.0.1
firebase-database 16.0.3
firebase-firestore 17.1.1
firebase-storage 16.0.3


Therefore you need to update the firebase-database to version 16.0.3 and firebase-auth to version 16.0.5.



Also update the google service plugin to version 4.2.0






share|improve this answer





















  • Thank you sir
    – Prashanth
    Nov 21 at 16:50
















0














According to the FirebaseUI docs:



As of version 4.2.1, FirebaseUI has the following dependency versions:



 Library          Version
firebase-auth 16.0.5
play-services-auth 16.0.1
firebase-database 16.0.3
firebase-firestore 17.1.1
firebase-storage 16.0.3


Therefore you need to update the firebase-database to version 16.0.3 and firebase-auth to version 16.0.5.



Also update the google service plugin to version 4.2.0






share|improve this answer





















  • Thank you sir
    – Prashanth
    Nov 21 at 16:50














0












0








0






According to the FirebaseUI docs:



As of version 4.2.1, FirebaseUI has the following dependency versions:



 Library          Version
firebase-auth 16.0.5
play-services-auth 16.0.1
firebase-database 16.0.3
firebase-firestore 17.1.1
firebase-storage 16.0.3


Therefore you need to update the firebase-database to version 16.0.3 and firebase-auth to version 16.0.5.



Also update the google service plugin to version 4.2.0






share|improve this answer












According to the FirebaseUI docs:



As of version 4.2.1, FirebaseUI has the following dependency versions:



 Library          Version
firebase-auth 16.0.5
play-services-auth 16.0.1
firebase-database 16.0.3
firebase-firestore 17.1.1
firebase-storage 16.0.3


Therefore you need to update the firebase-database to version 16.0.3 and firebase-auth to version 16.0.5.



Also update the google service plugin to version 4.2.0







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 20 at 18:27









Peter Haddad

20.3k84157




20.3k84157












  • Thank you sir
    – Prashanth
    Nov 21 at 16:50


















  • Thank you sir
    – Prashanth
    Nov 21 at 16:50
















Thank you sir
– Prashanth
Nov 21 at 16:50




Thank you sir
– Prashanth
Nov 21 at 16:50


















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f53399230%2ffirebase-api-initialization-failure-androidfirebase%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







Popular posts from this blog

Costa Masnaga

Fotorealismo

Create new schema in PostgreSQL using DBeaver