We know in SDK 2.3 we can obfuscate APK with Proguard.
The question is: How to obfuscate APK in Andorid 2.1/2.2 SDK?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Edit the file (in the project root) project.propierties and add the line
And its done. When you try to generate the signed apk of your app it will take a little longer and it will be obfuscated.
If you receive the “Conversion to dalvik error” when generating the apk you need to update the proguard of your sdk. For doing it you need to go to the ProGuard page to the download section. Download the last stable version and put it content in
Deleting the existing content before of course.
You can check the Proguard manual at their page (link is above) and the Android’s Proguard page for more info about ProGuard