Use Proguard For Stripping Unused Support Lib Classes
I'm adding the Android Support library to my project and I've noticed the resulting APK file inflates in size quite a bit. What I'm trying to do is use Proguard to remove classes
Solution 1:
The Android SDK only applies ProGuard in release builds, not in debug builds.
Furthermore, the Android SDK (r20 or higher) typically looks for proguard-project.txt
instead of proguard.txt in your project. This file can generally be empty, because the build process also reads the global file proguard-android.txt. You may want to update your project with
android update project -p MyProjectDirectory
Finally, the Android SDK (r20 or higher) disables ProGuard's optimization step by default (which can improve on its shrinking step). You can enable it by pointing to proguard-android-optimize.txt
instead of proguard-android.txt in your project.properties
.
Post a Comment for "Use Proguard For Stripping Unused Support Lib Classes"