android - enable proguard only for remove unused code -


my app using jar libs many methods, in fact used 2-3 methods libs. total size of libs more 2mb. don't need of , want shrink apk proguard.

i need enable proguard , configure remove unused code , shrink apk size. don't know how. don't want obfuscate app , etc. shrink final size.

i try enable proguard

minifyenabled true 

but got errors , nothing.

to shrink application should following:

release {   proguardfile getdefaultproguardfile('proguard-android.txt')   proguardfile 'proguard-shrink-only.txt'   proguardfile 'proguard-project.txt' } 

the proguard-shrink-only.txt should contain following options:

-dontobfuscate -dontoptimize 

the proguard-project.txt should contain project specific keep rules might needed classes used via reflection.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -