Reputation: 361
How can I remove the google play services analytics library from my android studio produced apk? I already did the selective compile com.google.android.gms:play-services-ads:7.3.+
and it did strip out a lot of the other junk, but it still kept services-analytics. I don't use the analytics, how can I get rid of the analytics?
Also how can I get rid of android support-v4 and annotations which I don't use also? (they are not called in gradle files, I do see mention in workspaces.xml as some 'tasks' )
Upvotes: 1
Views: 266
Reputation: 38243
Also how can I get rid of android support-v4 and annotations
You can't. All Play services use some version of support-v4 library (newest at the time of release).
Support annotations do not pollute your apk, it's only a source thing - helps Android Studio with code completion.
how can I get rid of the analytics?
You don't, play-services-ads
depends on play-services-analytics
.
Proguard will remove unused classes so I wouldn't worry much about any of this.
Sauce: Google maven repository in Android SDK.
Upvotes: 1