Proguard 给我随机错误

发布于 2024-12-29 07:50:00 字数 1568 浏览 0 评论 0原文

因此,我突然收到此错误消息。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

允世 2025-01-05 07:50:00

您是否尝试过使用“-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! :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文