0

I actually have the next dependencies in my gradle file:

compile 'com.google.android.gms:play-services-auth:8.4.0'
compile 'com.google.android.gms:play-services:8.4.0'

When I added the last (needed to implement GCM) I got errors, and now I need to use multidex for debugging.

My question is if the first library is redundant.

Thanks in advance.

JCarlosR
  • 1,598
  • 3
  • 19
  • 32
  • check here http://stackoverflow.com/questions/26609734/how-to-enable-multidexing-with-the-new-android-multidex-support-library – murtaza ali Feb 04 '16 at 05:12
  • I am already using multidex, but when I try to debug in my device, the app is installed with a gray icon that says _App_. – JCarlosR Feb 04 '16 at 05:27

2 Answers2

0

did you syn files after adding dependencies in build.gradle i.e. a cream colored bar appearing on top saving Gradle files have changed since last project....click on that to syn your new dependencies....

murtaza ali
  • 53
  • 2
  • 11
0

Using the next dependency

compile 'com.google.android.gms:play-services:8.4.0'

It is not necessary to use the particular dependency for authentication with Google+

compile 'com.google.android.gms:play-services-auth:8.4.0'

And finally, I don't need to use multidex when I add my dependencies exactly

compile 'com.google.android.gms:play-services-auth:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'

I found this information in the section Selectively compiling APIs into your executable.

Thank you.

JCarlosR
  • 1,598
  • 3
  • 19
  • 32