-keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiver -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService
-keepclasseswithmembernames class * { native <methods>; }
-keepclasseswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet); }
-keepclasseswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet, int); }
-keepclassmembers class * extends android.app.Activity { public void *(android.view.View); }
-keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); }
-keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; } -dontwarn -keep class com.google.gson.** {*;} -keep class com.alipay.android.app.** {*;} -keep class org.xmlpull.v1.** {*;} -keep class android.support.v4.** {*;} -keep class org.apache.http.entity.mime.** {*;}
[2013-07-11 16:06:04 - bitcare_assistant_efy] Proguard returned with error code 1. See console [2013-07-11 16:06:04 - bitcare_assistant_efy] Note: there were 527 duplicate class definitions. [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: library class android.content.res.XmlResourceParser extends or implements program class org.xmlpull.v1.XmlPullParser [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: library class android.content.Intent depends on program class org.xmlpull.v1.XmlPullParser [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: library class android.content.IntentFilter depends on program class org.xmlpull.v1.XmlSerializer [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: library class android.content.IntentFilter depends on program class org.xmlpull.v1.XmlPullParser [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: library class android.content.res.ColorStateList depends on program class org.xmlpull.v1.XmlPullParser [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: library class android.view.LayoutInflater depends on program class org.xmlpull.v1.XmlPullParser [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: library class android.view.LayoutInflater depends on program class org.xmlpull.v1.XmlPullParser [2013-07-11 16:06:04 - bitcare_assistant_efy] You should check if you need to specify additional program jars. [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: there were 10 instances of library classes depending on program classes. [2013-07-11 16:06:04 - bitcare_assistant_efy] You must avoid such dependencies, since the program classes will [2013-07-11 16:06:04 - bitcare_assistant_efy] be processed, while the library classes will remain unchanged. [2013-07-11 16:06:04 - bitcare_assistant_efy] java.io.IOException: Please correct the above warnings first.
[2013-07-11 16:06:04 - bitcare_assistant_efy] at proguard.Initializer.execute(Initializer.java:321) [2013-07-11 16:06:04 - bitcare_assistant_efy] at proguard.ProGuard.initialize(ProGuard.java:211) [2013-07-11 16:06:04 - bitcare_assistant_efy] at proguard.ProGuard.execute(ProGuard.java:86) [2013-07-11 16:06:04 - bitcare_assistant_efy] at proguard.ProGuard.main(ProGuard.java:492)
知道原因之后,可以去百度 android三方包混淆,祝顺利 [解决办法] 混淆代码的意思吗 我记得有人推荐,关键代码用c写 然后JNI调用,这样就可以了 [解决办法] 把第三方包里的类完整保留出来,不能混淆 [解决办法] [2013-07-11 16:06:04 - bitcare_assistant_efy] You should check if you need to specify additional program jars. [2013-07-11 16:06:04 - bitcare_assistant_efy] Warning: there were 10 instances of library classes depending on program classes.