Ionic 4 Cordova - Run Android Firebase error all of a sudden

#84

Gazzab Bro Gazzab…

#85

ok,this what works for me

“cordova-plugin-firebase”: “2.0.5”,

project.properties file

cordova.system.library.6=com.google.android.gms:play-services-tagmanager:16+ cordova.system.library.7=com.google.firebase:firebase-core:16.0.9 cordova.system.library.8=com.google.firebase:firebase-messaging:17+ cordova.system.library.9=com.google.firebase:firebase-config:16+ cordova.system.library.10=com.google.firebase:firebase-perf:16.2.4

build.gradle file

buildscript {
repositories {
google()
jcenter()
mavenCentral()
maven {
url “https://maven.google.com
}
maven {
url ‘https://maven.fabric.io/public
} }
dependencies {

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    classpath 'com.android.tools.build:gradle:3.0.1'
    classpath 'com.google.gms:google-services:4.2.0' // google-services dependency from cordova-plugin-firebase
    classpath 'io.fabric.tools:gradle:1.25.4' // fabric dependency from cordova-plugin-firebase
}

}

allprojects {
repositories {
google()// add it to top instead of bottom or somewhere in middle
mavenLocal()
mavenCentral()
maven {
url ‘https://maven.google.com
}

    jcenter()
}
//This replaces project.properties w.r.t. build settings
project.ext {
  defaultBuildToolsVersion="27.0.1" //String
  defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
  defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
  defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
}

}

1 Like
#86

not work for me
But after several attempts I have reached to this

from

cordova.system.library.6=com.google.android.gms:play-services-tagmanager:16+ cordova.system.library.7=com.google.firebase:firebase-core:16.0.9 cordova.system.library.8=com.google.firebase:firebase-messaging:17+ cordova.system.library.9=com.google.firebase:firebase-config:16+ cordova.system.library.10=com.google.firebase:firebase-perf:16.2.4

to

cordova.system.library.5=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.6=com.google.firebase:firebase-core:+
cordova.system.library.8=com.google.firebase:firebase-messaging:17+
cordova.system.library.9=com.google.firebase:firebase-config:16+
cordova.system.library.10=com.google.firebase:firebase-perf:16.2.4

#87

Thank you very much. It works for me