Reputation: 69
I want to obfuscate my android project.I watched a lot of tutorials but they didn't help me and I was not able to obfuscate my app.I have included the proguard folder in my project but it is not obfuscating my code.
Upvotes: 2
Views: 868
Reputation: 163
try this....
In eclipse package explorer go to your project and open project.properties file. In this file uncomment the below line
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
Open proguard-project.txt and paste
-injars bin/classes
-injars libs
-outjars bin/classes-processed.jar
-libraryjars C:\.....sdk/platforms/android-20/android.jar
-dontpreverify
-repackageclasses ''
-allowaccessmodification
-optimizations !code/simplification/arithmetic
-keepattributes *Annotation*
And finally right click on your project folder --> Android Tools --> Export Signed Application Package
Check the exported .apk !!
Upvotes: 1