Issue
At first I know Remove all unused resources from an android project, but that is only for projects.
I want to remove unused images from a library like the Google Play Services or the Wearable SDK. I already know that I can remove unwanted languages in gradle by using resConfigs
, but I don't know how to remove images and layouts which I don't use. Is there any way to avoid that they are added?
Solution
I almost missed it to write that there is now a nice solution:
android {
buildTypes {
release {
minifyEnabled true
shrinkResources true
}
}
}
This was annouced on Google+ by Tor Norbye for the build tools version 0.14.0
Answered By - rekire
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.