所以,突然之间,我收到了这条错误消息。
Description Resource Path Location Type
Obsolete proguard file; use -keepclasseswithmembers instead of -keepclasseswithmembernames proguard.cfg /Think Fast line 1 Android Lint Problem
我不知道我做错了什么。我刚要发布这个应用程序,现在我这个随机错误。我从来没有弄乱过这个文件。这是proguard的文件:
-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 *;
}
请帮忙,因为我不知道这里发生了什么。
由于 -Derek
答案 0 :(得分:2)
您是否尝试过使用“-keepclasseswithmembers而不是-keepclasseswithmembernames”?
默认模板存在问题:http://code.google.com/p/android/issues/detail?id=16384
同样清理并刷新项目,在“问题”视图中选择并删除错误标记。
祝你好运发布你的应用程序! :)