当前位置: 代码迷 >> Android >> android 项目混淆器导出报错,帮忙解决一下。
  详细解决方案

android 项目混淆器导出报错,帮忙解决一下。

热度:35   发布时间:2016-05-01 21:55:28.0
android 项目混淆器导出报错,帮忙解决一下。在线等。。。
[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 *;}
  相关解决方案