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