Android build falid (The library is being requested by various other libraries)

when I hit:

ionic Cordova plugin add cordova-plugin-firebase-lib@3.3.0 --save

It shows the following error:

My Ionic Info:


doesn’t work any more.

For firebase to work with Ionic v3 on android you need the following dependencies in package.json

"cordova-plugin-firebasex": "^7.0.1",
"cordova-plugin-android-support-v4": "^21.0.1",
"cordova-plugin-androidx": "^1.0.2",
"cordova-plugin-androidx-adapter": "^1.1.0",

Also do check:

  1. There is no for cordova-plugin-firebase in config.xml
  2. cordova-plugin-firebase is not installed in the plugin folder.

I was still having issues with those plugins.

following this guide worked for me, and I only needed the FCM plugin which was nice not adding a bunch of plugins

Hi did you try on both Android and iOS? Does it receive notifications?