Android混淆打包出错,出现类似 there were 100 duplicate class definitions解决办法 分类: Android安装及配置 2014-12-20 10:31 171人阅读 评论(0) 收藏

[2014-11-24 10:39:39 - Haiwan] Proguard returned with error code 1. See console
[2014-11-24 10:39:39 - Haiwan] Note: there were 133 duplicate class definitions.
[2014-11-24 10:39:39 - Haiwan] Warning: android.support.v7.app.ActionBarActivityDelegateBase$2: can't find superclass or interface android.support.v4.view.OnApplyWindowInsetsListener
[2014-11-24 10:39:39 - Haiwan] Warning: android.support.v7.internal.app.WindowDecorActionBar$1: can't find superclass or interface android.support.v4.view.ViewPropertyAnimatorListenerAdapter
[2014-11-24 10:39:39 - Haiwan] Warning: android.support.v7.internal.app.WindowDecorActionBar$2: can't find superclass or interface android.support.v4.view.ViewPropertyAnimatorListenerAdapter
[2014-11-24 10:39:39 - Haiwan] Warning: android.support.v7.internal.app.WindowDecorActionBar$3: can't find superclass or interface 
[2014-11-24 10:39:39 - Haiwan]       You should check if you need to specify additional program jars.
[2014-11-24 10:39:39 - Haiwan] Warning: there were 164 unresolved references to classes or interfaces.
[2014-11-24 10:39:39 - Haiwan]          You may need to specify additional library jars (using '-libraryjars').
[2014-11-24 10:39:39 - Haiwan] Warning: there were 44 unresolved references to program class members.
[2014-11-24 10:39:39 - Haiwan]          Your input classes appear to be inconsistent.
[2014-11-24 10:39:39 - Haiwan]          You may need to recompile them and try again.
[2014-11-24 10:39:39 - Haiwan]          Alternatively, you may have to specify the option 
[2014-11-24 10:39:39 - Haiwan]          '-dontskipnonpubliclibraryclassmembers'.

[2014-11-24 10:39:39 - Haiwan] Error: Please correct the above warnings first.



根据提示,在proguard-project.txt文件添加

-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
-ignorewarnings

posted @ 2014-12-20 10:31  leansmall  阅读(1081)  评论(0编辑  收藏  举报