只编译google-play-service的一部分
将compile 'com.google.android.gms:play-services:8.4.+'
改为只编译所需导入部分的相应代码如
compile 'com.google.android.gms:play-services-ads:8.4.+'
具体可以导入的部分:
com.google.android.gms:play-services-base:8.4.+
com.google.android.gms:play-services-ads:8.4.+
com.google.android.gms:play-services-appindexing:8.4.+
com.google.android.gms:play-services-maps:8.4.+
com.google.android.gms:play-services-location:8.4.+
com.google.android.gms:play-services-fitness:8.4.+
com.google.android.gms:play-services-panorama:8.4.+
com.google.android.gms:play-services-drive:8.4.+
com.google.android.gms:play-services-games:8.4.+
com.google.android.gms:play-services-wallet:8.4.+
com.google.android.gms:play-services-identity:8.4.+
com.google.android.gms:play-services-cast:8.4.+
com.google.android.gms:play-services-plus:8.4.+
com.google.android.gms:play-services-appstate:8.4.+
com.google.android.gms:play-services-wearable:8.4.+
com.google.android.gms:play-services-all-wear:8.4.+
com.google.android.gms:play-services-all-analytics:8.4.+