[2011-10-23 16:54:30 - wat.ybzs] Proguard returned with error code 1. See console
[2011-10-23 16:54:30 - wat.ybzs] proguard.ParseException: Unknown option 'and' in argument number 9
[2011-10-23 16:54:30 - wat.ybzs] at proguard.ConfigurationParser.parse(ConfigurationParser.java:170)
[2011-10-23 16:54:30 - wat.ybzs] at proguard.ProGuard.main(ProGuard.java:491)
换
-optimizationpasses 5
------解决方案--------------------
proguard.cfg 放在工程目录下
内容:
- Java code
-optimizationpasses 5-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses-dontpreverify-verbose-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*-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>;}-keepclasseswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet);}-keepclasseswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int);}-keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String);}-keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *;}