How do I remove unused resources from third-party libraries I’ve included on Android?
问题 The third-party libraries that I link into my app often include resource files that aren’t being used by my application, and as such, end up bloating my APK. For example, including the Google Play services library, but not using the login button functionality; all those image and layout resources end up in my final build. Since these resources are included in a compiled library, how can I remove them from my build? 回答1: This answer is summarized from Removing Unused Resources which explains