Cordova-plugin-firebase with Capacitor. Android Studio build error

There appears to be an issue with the cordova-plugin-firebase plugin when using Capacitor.
I get the following error in Android Studio.

ERROR: Plugin with id 'io.fabric' not found.

Has anyone got a work around or fix for this?
I am using the plugin in a project for push notifications from firebase. I used the code from this example. Which I got to work fine using Cordova.

I had a google but all I found was this:

which links to this: