Ionic 3 with firebase messaging

I am trying to add Firebase messaging in my app, to do so I follow:

and run the commands

  1. ionic cordova plugin add cordova-plugin-firebase
  2. npm install --save @ionic-native/firebase
    Then I added in my code use in: FirebaseMessaging
    connected a phone to the pc and run: “ionic cordova run android”
    The error I received is:

Could not find support-media-compat.aar (
Searched in the following locations:
Could not find support-core-utils.aar (
Searched in the following locations:
The error is clear, when accessing the links I receive 404, How can I solve it?