Reputation: 9724
I receive this error:
[cordova] * What went wrong: [cordova] The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[17.0.0,17.0.0], [17.2.0,17.2.0]], but resolves to 17.2.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
I install cordova-plugin-firebase
plugin and read this instructions:
Google Play Services Your build may fail if you are installing multiple plugins that use Google Play Services. This is caused by the
plugins installing different versions of the Google Play Services library. This can be resolved by installing cordova-android-play-services-gradle-release.
...
My config.xml
:
<variable name="PLAY-SERVICES-MEASUREMENT" value="17.2.0" />
<variable name="PLAY-SERVICES-MEASUREMENT-API" value="17.2.0" />
<variable name="PLAY-SERVICES-MEASUREMENT-IMPL" value="17.2.0" />
<variable name="PLAY-SERVICES-MEASUREMENT-SDK" value="17.2.0" />
<variable name="PLAY-SERVICES-MEASUREMENT-SDK-API" value="17.2.0" />
After I removed platform android
and add again, but returns same error:
... library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[17.0.0,17.0.0], [17.2.0,17.2.0]]
I'm not sure, but maybe it's the cordova-plugin-googleplus
plugin that conflicts with firebase cordova-plugin-googleplus
because of google services.
Platforms:
Plugins versions:
I really don't want to be required to edit the platforms/android/project.properties
file (as suggested in most SO answers), because any installation or reinstallation of plugins I would be required to edit again, and if someone else is going to work on the project this would also complicate.
Can you solve this with cordova-android-play-services-gradle-release
plugin (or other means) and without editing the platforms/android/project.properties
?
Upvotes: 3
Views: 1687
Reputation: 116
I also had the same problem for days. I can not adjust the versions. Then today, when I look back to repo's issues page, I saw that some plugin named cordova-plugin-firebasex solves this and more issues.
Maybe you can check it out.
Upvotes: 1