cordova-plugin-firebasex: Unable to (re-)add android@latest platform
Describe the bug I had to remove my android platform and I’m currently unable to re-add it. At least the 'cordova platform add android@latest` doesn’t complete successfully.
This is the relevant part of my package.json:
"dependencies": {
"@angular/animations": "4.4.3",
"@angular/common": "4.4.3",
"@angular/compiler": "4.4.3",
"@angular/compiler-cli": "4.4.3",
"@angular/core": "4.4.3",
"@angular/forms": "4.4.3",
"@angular/http": "4.4.3",
"@angular/platform-browser": "4.4.3",
"@angular/platform-browser-dynamic": "4.4.3",
"@ionic-native/app-version": "4.7.0",
"@ionic-native/camera": "3.9.2",
"@ionic-native/contacts": "3.9.2",
"@ionic-native/core": "3.9.2",
"@ionic-native/email-composer": "4.5.3",
"@ionic-native/facebook": "4.4.2",
"@ionic-native/file": "3.9.2",
"@ionic-native/firebase": "3.9.2",
"@ionic-native/geolocation": "3.9.2",
"@ionic-native/google-plus": "^4.20.0",
"@ionic-native/in-app-purchase-2": "4.12.0",
"@ionic-native/keyboard": "3.9.2",
"@ionic-native/media": "^4.20.0",
"@ionic-native/media-capture": "3.9.2",
"@ionic-native/native-audio": "4.5.2",
"@ionic-native/native-keyboard": "4.6.0",
"@ionic-native/splash-screen": "3.9.2",
"@ionic-native/status-bar": "3.9.2",
"@ionic-native/toast": "^4.20.0",
"@ionic/storage": "2.0.1",
"android-versions": "1.3.0",
"angularfire2": "5.0.0-rc.3",
"animate.css": "3.6.1",
"copyfiles": "2.0.0",
"cordova-android": "8.0.0",
"cordova-ios": "^4.5.5",
"cordova-ios-plugin-no-export-compliance": "0.0.5",
"cordova-plugin-androidx": "1.0.2",
"cordova-plugin-androidx-adapter": "1.0.2",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-camera": "^2.4.1",
"cordova-plugin-cocoapod-support": "git+https://github.com/dpa99c/cordova-plugin-cocoapods-support.git",
"cordova-plugin-cocoapod-supportx": "git+https://github.com/dpa99c/cordova-plugin-cocoapods-support.git",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-contacts": "^2.3.1",
"cordova-plugin-device": "^1.1.7",
"cordova-plugin-disable-ios11-statusbar": "^1.0.0",
"cordova-plugin-email-composer": "^0.8.15",
"cordova-plugin-facebook4": "^2.1.0",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-firebase": "git+https://github.com/dpa99c/cordova-plugin-firebase.git",
"cordova-plugin-geolocation": "^2.4.3",
"cordova-plugin-googleplus": "^7.0.0",
"cordova-plugin-ionic-webview": "^4.0.1",
"cordova-plugin-media": "5.0.2",
"cordova-plugin-media-capture": "1.4.3",
"cordova-plugin-native-keyboard": "^1.5.4",
"cordova-plugin-nativeaudio": "^3.0.9",
"cordova-plugin-purchase": "8.1.1",
"cordova-plugin-splashscreen": "^4.1.0",
"cordova-plugin-statusbar": "^2.4.1",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-plugin-x-toast": "2.7.2",
"css-animator": "2.3.1",
"firebase": "4.5.0",
"ionic-angular": "3.9.2",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"moment": "2.18.1",
"ng2-cordova-oauth": "0.0.8",
"promise-polyfill": "^8.1.0",
"rxjs": "5.4.3",
"sw-toolbox": "3.6.0",
"underscore": "1.9.1",
"web-animations-js": "2.3.1",
"zone.js": "0.8.10"
},
Console Logs
Installing "cordova-plugin-firebase" for android
Failed to install 'cordova-plugin-firebase': Error: Expected plugin to have ID "cordova-plugin-cocoapod-support" but got "cordova-plugin-cocoapod-supportx".
at checkID (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:203:15)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:187:9
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:624:44
at runSingle (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:137:13)
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
Expected plugin to have ID "cordova-plugin-cocoapod-support" but got "cordova-plugin-cocoapod-supportx".
Plugin Version
cordova-ios-plugin-no-export-compliance 0.0.5 "iOS No Export Compliance"
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.0.2 "cordova-plugin-androidx-adapter"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-cocoapod-supportx 1.6.1 "Cordova CocoaPods Dependency Support"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-contacts 2.3.1 "Contacts"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-disable-ios11-statusbar 1.0.0 "cordova-plugin-disable-ios11-statusbar"
cordova-plugin-email-composer 0.8.15 "EmailComposer"
cordova-plugin-facebook4 2.1.0 "Facebook Connect"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-firebase 2.0.5-custom "Google Firebase Plugin"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-googleplus 7.0.0 "Google SignIn"
cordova-plugin-ionic-webview 4.0.1 "cordova-plugin-ionic-webview"
cordova-plugin-media 5.0.2 "Media"
cordova-plugin-media-capture 1.4.3 "Capture"
cordova-plugin-native-keyboard 1.5.4 "Native Keyboard"
cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio"
cordova-plugin-purchase 8.1.1 "Purchase"
cordova-plugin-splashscreen 4.1.0 "Splashscreen"
cordova-plugin-statusbar 2.4.1 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-toast 2.7.2 "Toast"
ionic-plugin-keyboard 2.2.1 "Keyboard"
Any help would be really much appreciated! If I try to switch back to android 7.x, the build will fail as well (because of dependencies for this plugin, as mentioned here: https://github.com/arnesson/cordova-plugin-firebase/issues/1081#issuecomment-503135862)
That comment was the reason to give your fork a try.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (6 by maintainers)
Commits related to this issue
- Document migration from cordova-plugin-firebase. Resolves #6. — committed to dpa99c/cordova-plugin-firebasex by dpa99c 5 years ago
- update pod cdn (#6) — committed to cephalo-ai/cordova-plugin-firebasex by deleted user 5 years ago
- update pod cdn (#6) — committed to cephalo-ai/cordova-plugin-firebasex by deleted user 5 years ago
Oops 😬 Thanks Sven!
@svzi I’ve just published
cordova-plugin-androidx-adapter@1.1.0to npm which also migrates references inproject.propertiesandAndroidManifest.xml- please give it a try as it should resolve the runtime crash above.I would get drastic then:
Removing
cordova-plugin-firebaseandcordova-plugin-cocoapod-supportand addingcordova-plugin-firebasexshould resolve this. I’ll update the documentation to make this clearer.