Android - Proguard 返回错误代码 1。请参阅控制台

标签 android

我有混淆器的问题。我在控制台上得到这个 我使用 proguard 4.11。我该如何解决这个问题?

    [2014-02-11 12:46:55 - Distributor] Proguard returned with error code 1. See console
    [2014-02-11 12:46:55 - Distributor] Note: there were 4 duplicate class definitions.
    [2014-02-11 12:46:55 - Distributor]       (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.content.res.XmlResourceParser extends or implements program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.content.Intent depends on program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.content.IntentFilter depends on program class org.xmlpull.v1.XmlSerializer
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.content.IntentFilter depends on program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.content.res.ColorStateList depends on program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.graphics.drawable.ColorDrawable depends on program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.graphics.drawable.LevelListDrawable depends on program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.view.LayoutInflater depends on program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: library class android.view.LayoutInflater depends on program class org.xmlpull.v1.XmlPullParser
    [2014-02-11 12:46:55 - Distributor] Warning: there were 12 instances of library classes depending on program classes.
    [2014-02-11 12:46:55 - Distributor]          You must avoid such dependencies, since the program classes will
    [2014-02-11 12:46:55 - Distributor]          be processed, while the library classes will remain unchanged.
    [2014-02-11 12:46:55 - Distributor]          (http://proguard.sourceforge.net/manual/troubleshooting.html#dependency)
    [2014-02-11 12:46:55 - Distributor] Error: Please correct the above warnings first.

最佳答案

我将这一行添加到 proguard-project.txt

    -dontwarn org.xmlpull.v1.**

这行到 project.properties

   proguard.config=proguard-project.txt

关于Android - Proguard 返回错误代码 1。请参阅控制台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21698453/

相关文章:

android - 我们如何通过我们的应用程序在 Instagram 上关注某人?

android - 如何杀死服务中的线程?

android - 如何将 Google Play 服务添加到 AIDE 项目?

java - 如果返回类型是 xpose 中的 list<string>,我该如何 Hook ?

java - 如何在android recyclerview上管理太多项目的内存

android - 在错误日志中使用记帐信息的优缺点

android - 如何在不使用 PackageManager 的情况下阅读 Android Manifest?

android - Wear OS如何检查电池是否已插入

java - 安卓简单游戏。在游戏 View 上添加图像按钮

android - 如何在用户单击 webview android 中的文本框时隐藏键盘