A lot has been written about the monolithic nature of the Google Play Services and why it should be split into more libraries. For now the workaround to keep your APK small is t
As of version 0.14 of the Android Gradle plugin, this can be accomplished automatically as mentioned in this post:
android {
buildTypes {
release {
minifyEnabled true
shrinkResources true
}
}
}
shrinkResources
is a flag that tells the compiler to skip any resources that aren't referenced. minifyEnabled
is the new name for runProguard
, which must be enabled for shrinkResources
to work.