2014-02-11 2 views
3

У меня проблема с proguard. Я получаю это на консоли Я использую proguard 4.11. Как я могу это исправить?Android - Proguard возвращен с кодом ошибки 1. См. Консоль

[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. 
+0

Сообщение консоли дает вам две неработающие ссылки, чтобы прочитать на них две проблемы. Вы все еще можете найти информацию, перейдя на руководство -> поиск и устранение неисправностей на странице Proguard. – Simon

ответ

6

я добавил эту строку Proguard-project.txt

-dontwarn org.xmlpull.v1.** 

и эту линию project.properties

proguard.config=proguard-project.txt 
+0

Это помогает мне создать сборку, но сгенерированная сборка закрыта немедленно. – Srinivasan

Смежные вопросы