If the project introduces the jar class library for the android-support-v4, an error message appears when the project is packaged for obfuscation. For example, you may need to specify additional library jars (using '-libraryjars ').
Packaging error:
Scenario 1:
"Class 1 can't find referenced class Class 2" literally means Class 1 cannot find the reference of Class 2; It will suggest you: "You may need to specify additional library jars (using '-libraryjars '). ";
You need to use-libraryjars and the third-party libraries used in the project.
Example:-libraryjars/android-support-v4.jar
Note: The reference method here is the root directory of the current project (other directories can also be configured), that is, you need to put the third-party jar under the current directory, otherwise, a warning is reported that the JAR file cannot be found!
Scenario 2:
For example: Can't Find superclass or interface Android. OS. parcelable $ classloadercreator. In this case, you can use-dontwarn com. XX. yy. ** to warn against errors.
Note: to use this method, make sure you do not use the class in this library! Otherwise, the classnotfoundexception will be thrown!
Case 3:
This class is indeed used in the project, but the above method still does not work. At this time, we need to add another item:-keep class com. XX. yy. ** {*;} to keep the current class from being confused.
The above solutions are all searched by Du Niang. Finally, delete the proguard file and restart eclipse.