您的位置:首页 > 移动开发 > Android开发

Android混淆打包出错,出现类似 there were 100 duplicate class definitions解决办法

2014-12-20 10:31 1071 查看
[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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐