How to solve build failure with cordova-plugin-fcm?

I think you have to update your android dependancies from the sdk manager.
And you need a few packages: