Ionic angular google play services conflict version

I am having this problem while building ionic apk
any help?

FAILURE: Build failed with an exception.

  • What went wrong:
    In project ‘app’ a resolved Google Play services library dependency depends on another at an exact version (e.g. “[15.0.
    1]”, but isn’t being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.android.gms:play-services-stats:15.0.1 -> com.google.android.gms:play-services-basement@[
15.0.1], but play-services-basement version was 16.0.1.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
– Project ‘app’ depends onto com.google.android.gms:play-services-location@16.0.0
– Project ‘app’ depends onto com.google.android.gms:play-services-location@15.+
– Project ‘app’ depends onto com.google.android.gms:play-services-maps@16.0.0
– Project ‘app’ depends onto com.google.firebase:firebase-messaging@17.0.+