question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android build fails: com.google.android.gms:play-services-analytics version need to be specified

See original GitHub issue

Hi,

Right now com.google.android.gms:play-services-analytics:+ doesn’t explicitly specify a version number for the library which lead to a gradle conflict while using phonegap-plugin-push 2.0.0

Would you be ok to modify following line of plugin.xml?

Instead of

 <framework src="com.google.android.gms:play-services-analytics:+" />

Specifying the use of version 11.0.1

 <framework src="com.google.android.gms:play-services-analytics:11.0.1" />

This fix the conflict error.

Related issue phonegap-plugin-push: https://github.com/phonegap/phonegap-plugin-push/issues/1718

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:22 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
macdonstcommented, Aug 20, 2017

@danwilson I’m working with the cordova-cli team to add the ability to include variables in the framework tag.

So right now you have:

<framework src="com.google.android.gms:play-services-analytics:+" />

and when it is done we can specify:

<preference name="PLAY_SERVICES" default="+"/>
<framework src="com.google.android.gms:play-services-analytics:$PLAY_SERVICES" />

but then users will be able to over-ride the play services version to match other plugins that depend on the same framework but pin a specific version.

I’ll send a PR when it’s ready.

1reaction
iPzardcommented, Nov 14, 2018

@BhavikaP Glad to help 😃… Let me know how it goes!

Read more comments on GitHub >

github_iconTop Results From Across the Web

com.google.android.gms:play-services-measurement-base ...
Now they don't need to be the same, only the latest. When specifying even a single lib, it pulls in dependencies where the...
Read more >
Failed to list versions for com.google.android.gms:play- ...
The app fails the build process for Android with the following error: ... com.google.android.gms:play-services-measurement-sdk-api:[17.4.4].
Read more >
Release Notes - Play services
The latest update to Firebase includes changes to: Firebase Android BoM (Bill of Materials); Firebase SDK for Google Analytics; Cloud Firestore; Firebase App ......
Read more >
Dependencies of Firebase Android SDKs on Google Play ...
Some Firebase Android SDKs depend on Google Play services, which means they will only run on devices and emulators with Google Play services...
Read more >
com.google.android.gms:play-services-measurement-api:16.5.0
Hi everyone, I have made an ionic app last year and now I tried to integrate Admob Free plugin but build got error....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found