Ionic Cordova app stopped compiling after Google's June 17th Firebase SDK update

后端 未结 10 1441
花落未央
花落未央 2020-11-28 06:54

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

相关标签:
10条回答
  • 2020-11-28 07:41

    Remove the folder node_modules and file package-lock.json, then at terminal run:

    npm install
    
    0 讨论(0)
  • 2020-11-28 07:45

    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

    cordova-plugin-firebase is now included in cordova-plugin-firebase-lib

    0 讨论(0)
  • 2020-11-28 07:54

    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

    0 讨论(0)
  • 2020-11-28 07:57

    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 ?

    0 讨论(0)
提交回复
热议问题