Android – Proguard返回错误代码1.请参阅控制台

我对proguard有疑问.我在控制台上得到了这个
我使用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性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...