-2

I know there is certain limit of functions for app.

I'm using play services and using resources from it like color resources etc

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

what specific api should I compile with like compile 'com.google.android.gms:play-services- ?????? :11.0.2'

1 Answers1

1

Do not use whole play services compile statement directly. You should include individual modules of play service that your app is using. For example if your app is using location services you should inly include

com.google.android.gms:play-services-location:11.0.4

or if you are using Google Analytics you should only include

com.google.android.gms:play-services-analytics:11.0.4

you can find individual module compile gradle statements here

https://developers.google.com/android/guides/setup

Abhishek Bansal
  • 5,197
  • 4
  • 40
  • 69