Android build fails: com.google.android.gms:play-services-analytics version need to be specified
See original GitHub issueHi,
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:
- Created 6 years ago
- Comments:22 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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:
and when it is done we can specify:
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.
@BhavikaP Glad to help 😃… Let me know how it goes!