ghazanfar ali
ghazanfar ali

Reputation: 69

Proguard Obfuscation in eclipse

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

Answers (1)

Nikos Mitropoulos
Nikos Mitropoulos

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

Related Questions