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.

Play services version conflict with other plugins

See original GitHub issue

I’ve experienced a issue today with building our android app, where it was coming up with an error:

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzed.class

After some research I pinned this down to one of the plugins we are using requesting a different version of some play-services-xxxx from other plugins in the app. Turns out it was this plugin which recently introduced the use of build.gradle and it’s using play-services 9.+ and 9+. Looking at other plugins they are all using 11+ now and I believe this has caused the problem where different version of services are being requested.

I’ve locked the version of this plugin in our app to use 2.6.0 and the app builds again, it was pulling in 2.6.2. I’m not specifically saying there is a bug in this plugin because standalone it will work, but just asking the question whether there is a specific reason for using version 9+ and if I’m right in saying this could be causing the error above or was it something else between 2.6.0 and 2.6.2 that might be the culprit?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ethanneffcommented, Jul 13, 2017

Hello hello again,

I pushed version 2.6.3 which removed the Google Play Services framework from our SDK. We need to do some additional work and testing internally before we can confirm the upgrade from 9+ to 11+, so we have removed the framework for now. The good news, however, is this framework removal will not impact your deep linking abilities with Branch.

Thank you for cordova plugins output. I will be using them to investigate a better long term solution so our SDK does not impact other SDKs.

To can follow this guide to upgrade your Branch Cordova SDK to 2.6.3.

Thanks,

1reaction
ethanneffcommented, Jul 21, 2017

There have been no other reports of problems in over a week. Safe to assume the problem has been resolved. Closing this ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: fix the version conflict (google-services plugin)
This answer does NOT cover the newer versions where versions are individual. Update com.google.gms:google-services:4.1.0 and check mvnrepository ...
Read more >
Please fix the version conflict either by updating the ... - GitHub
I just added the plugin and got this error.. I tried many possible solution but I am stuck here from last 7 days.....
Read more >
The Google Services Gradle Plugin
The google-services.json file is generally placed in the app/ directory (at the root of the Android Studio app module). As of version 2.2.0...
Read more >
Google Play Services Version conflict - Ionic Native
Hello, i tried to install the Google Maps and Firebase Cloud Messaging from the Ionic Native into one project using ionic 3 and...
Read more >
Resolving Google Play Services conflicts - Pushwoosh
This guide explains how to solve the conflicts between different plugins, frameworks, and google-play-services libraries.
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