I want minimize my app size as well as avoid the app from reverse-engineering. Can anybody help with simple answer?
Share
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.
Proguard is part of the android eclipse plugin, so you do not have to invoke it manually.
You just need to activate it on your build.
To enable ProGuard so that it runs as part of an Ant or Eclipse build, set the
proguard.configproperty in the<project_root>/project.propertiesfile. The path can be an absolute path or a path relative to the project’s root.For some situations, the default configurations in the proguard.cfg file will suffice. However, many situations are hard for ProGuard to analyze correctly and it might remove code that it thinks is not used, but your application actually needs. Some examples include:
The default proguard.cfg file tries to cover general cases, but you might encounter exceptions such as ClassNotFoundException, which happens when ProGuard strips away an entire class that your application calls.
You can fix errors when ProGuard strips away your code by adding a
-keepline in the proguard.cfg file.