Skip to content

Configuring play-services version on capacitor #588

@p-v-d-Veeken

Description

@p-v-d-Veeken

In the documentation it says:
Use the GMS_VERSION to align the required play-services version with other plugins.

cordova plugin add cordova-plugin-google-analytics --variable GMS_VERSION=11.0.1

However I'm working on a capacitor project and although it was fairly painless to install the plugin, I'm now having issues building the app due to version mismatches:

Error: All gms/firebase libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 17.0.0, 11.0.1. Examples include com.google.android.gms:play-services-base:17.0.0 and com.google.android.gms:play-services-analytics-impl:11.0.1 

It appears this problem could be trivially fixed by specifying the GMS_VERSION, but I don't know if that's possible with capacitor. Any help would be greatly appreciated. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions