Proguard 给我随机错误
因此,我突然收到此错误消息。
Description Resource Path Location Type
Obsolete proguard file; use -keepclasseswithmembers instead of -keepclasseswithmembernames proguard.cfg /Think Fast line 1 Android Lint Problem
我不知道我做错了什么。我正要发布这个应用程序,现在我出现了这个随机错误。我从来没有弄乱过这个文件。这是混淆器的文件:
-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 *;
}
请帮忙,因为我对这里发生的情况一无所知。
谢谢 -德里克
So, out of the blue I get this error message.
Description Resource Path Location Type
Obsolete proguard file; use -keepclasseswithmembers instead of -keepclasseswithmembernames proguard.cfg /Think Fast line 1 Android Lint Problem
And I have no idea what I did wrong. I was just about to publish this app and now I this random error. I have never messed with this file. Here is the file for the 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 *;
}
Please help, because I have not a single clue what is going on here.
Thanks
-Derek
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过使用“-keepclasseswithmembers 而不是 -keepclasseswithmembernames”?
默认模板存在问题:http://code.google.com /p/android/issues/detail?id=16384
同时清理并刷新您的项目,选择并删除“问题”视图中的错误标记。
祝您发布应用程序顺利! :)
Have you tried using "-keepclasseswithmembers instead of -keepclasseswithmembernames"?
There's an issue with the default template: http://code.google.com/p/android/issues/detail?id=16384
Also clean and refresh your project, select and delete the error marker in the Problems view.
Good luck publishing your app! :)