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.

Only include those google play services that are required

See original GitHub issue

Right now you include the following in your ./mixpanel-android/build.gradle:

// Note- *all* dependencies are marked as optional in our final
// pom! If you need a transitive dependency in the library, you'll
// have to change the bit in uploadArchives that marks all dependencies as optional.
dependencies {
    compile "com.google.android.gms:play-services:[3.1,)"
}

However, if Mixpanel does need to include some of Google Play Services, it can do so more granularly, for example:

compile 'com.google.android.gms:play-services-base:7.5.0'
compile 'com.google.android.gms:play-services-maps:7.5.0'
compile 'com.google.android.gms:play-services-location:7.5.0'
...

I’m not sure if using open ended versioning (i.e. [3.1,) ) affects your ability to do this, but it might be good to specify Mixpanel’s requirements explicitly.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
yinfeirucommented, Feb 19, 2016

Thanks guys! I have a pr for it! #333

1reaction
martinvanocommented, Dec 9, 2015

@rajuashok check this: https://mixpanel.com/help/reference/android You should only need compile ‘com.google.android.gms:play-services-gcm:8.3.0’ compile ‘com.google.android.gms:play-services-base:8.3.0’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gmail requires one or more Google Play Services that are ...
Gmail requires one or more Google Play Services that are currently not available. Gmail app was working correctly until I clicked on email ......
Read more >
Google Play services explanation now directly included in ...
Play services powers many features on Android devices, and Google is now offering an explanation directly on your phone...
Read more >
Google Play Services - Everything you need to know
Google Play Services is one of the most powerful pieces of software that people hardly know anything about. Learn everything you need here....
Read more >
What Is Google Play Services? Why Do You Need It?
Google Play Game Services: These services are used to create a more competitive and immersive experience in multiplayer gaming sessions through leaderboards and ......
Read more >
Set up Google Play services
Declare dependencies for Google Play services · Open the build.gradle file inside your app's module directory. · For each SDK that your app...
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