Proguard Android confuse

Source: Internet
Author: User

Everyone to the confusion package on the end of the project, to go online, but encountered the problem of people more irritable, I also recorded because of confusion encountered problems

  • First of all, I packaged it in the android4.0 version to see if there was a file in the project.

  • If so, please continue to click into the Project.Properties file, open the line below, that is, the # number is removed-it is to be confused
  • Then click into the Proguard-project.txt file, because I was in the android4.0 version development package, do not need to write some of the common Android keep. We just have to write our own piece of it. Let me give you an example.
    -dontwarn org.dom4j.**  -keep class org.dom4j.**{*;}  
    Because I quoted a lot of similar jar packages, some confusion will cause problems I will be one by one to protect it from confusion, that is,-keep. Look at my files.
  • This is generally good, but the point is, because many of us are going to use some framework to manipulate the database as I do. That's a problem. Because your entity bean is confused, there is a problem with the database operation. So we have to remember to confuse the entity bean in our own project as follows:
    -keep public class com.test.domain.**{*;}
    This is about the package name for your own project.
  • Add your own libs for the jar package
    -libraryjars/libs/commons-codec.jar-libraryjars/libs/gson-2.2.4.jar-libraryjars/libs/guava-r09.jar-libraryjars /libs/imagelib.jar-libraryjars/libs/jackson-all-1.9.11.jar

  • It's OK to get here, and you can just pack the signature.

Proguard Android confuse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.