I\'m unable to compile Ionic Cordova App after Firebase Major version update with Breaking Changes, specifically with June 17, 2019 update.
I tried downgrading to An
Remove the folder node_modules
and file package-lock.json
, then at terminal run:
npm install
Follow the sequence below for cordova-android <= 7.1.4
cordova platform remove android
cordova plugin remove cordova-plugin-firebase
cordova plugin add cordova-plugin-firebase-lib@3.3.0
cordova platform add android
Solution :
Follow the sequence below for
cordova android platform <= 7.1.4
cordova platform remove android
cordova plugin remove cordova-plugin-firebase
cordova plugin add cordova-plugin-firebase-lib@3.3.0
cordova platform add android
Having in platform/android/project.properties following settings :
cordova.gradle.include.1=cordova-plugin-firebase/app-build.gradle
cordova.system.library.4=com.google.firebase:firebase-core:+
cordova.system.library.5=com.google.firebase:firebase-messaging:+
cordova.system.library.6=com.google.firebase:firebase-config:+
cordova.system.library.7=com.google.firebase:firebase-perf:+
I had the same issue (error: resource android:attr/ttcIndex not found).
cordova-android@8.0.0 + cordova-plugin-androidx + cordova-plugin-androidx-adapter worked for me perfectly.
Thanks for this solution.
I am just wondering if it is a good long time bet to use those two plugins. Any opinion ?