Android的 - Proguard的重复拉链录入错误 [英] Android - Proguard duplicate zip entry error

查看:200
本文介绍了Android的 - Proguard的重复拉链录入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的ProGuard在 Android应用程序,它使用一个机器人库项目,然后我收到以下错误:

I am trying to use proguard in an android application which uses a android library project and I am getting the following error :

java.io.IOException: Can't write 
    [/private/var/folders/Pg/PgUpPJQ-E5qxL7jX6kpdCE+++TI/-Tmp-/android_3140050575281008652.jar] 
    (Can't read [proguard.ClassPathEntry@1f8d244] 
    (Duplicate zip entry 
    [be.class == android_144638064543155619.jar:com/comp/dp/library/R$anim.class]))
at proguard.OutputWriter.writeOutput(OutputWriter.java:224)
at proguard.OutputWriter.execute(OutputWriter.java:120)
at proguard.ProGuard.writeOutput(ProGuard.java:391)
at proguard.ProGuard.execute(ProGuard.java:152)
at proguard.ProGuard.main(ProGuard.java:499)

我的proguard.cfg文件此内容以及一些 -libraryjars 参照的rt.jar 和一些其他的依赖库。

My proguard.cfg file is this along with a few -libraryjars referring to rt.jar and couple of other dependent libraries.

我的猜测是,这个问题是一些相关的使用图书馆项目和ProGuard的尝试处理从库中项目条目的两倍。但我不知道哪些选项,我应该用它来解决这个问题。

My guess is that this problem is something related to using the Library Project and that proguard is trying to process entry from the library project twice. But I was not sure which options I should use to fix this.

任何建议/方向是多少AP preciated。

Any suggestions/directions are much appreciated.

更新1:通过删除 -injars斌/班我能打通这个问题。我的猜测是,由于ProGuard的过程既库项目和库项目的的.class 文件进行处理两倍的应用程序项目。一旦在库项目的斌/班文件夹和应用程序项目的其他时间斌/班文件夹。

Update 1 : By removing the -injars bin/classes I was able to get through with this problem. My guess was that because proguard process both library project and the application project the .class files of the library project was processed twice. Once in the library project's bin/classes folder and another time in the application project's bin/classes folder.

推荐答案

更新1 的问题已经解决了我的问题,我现在可以运行我的应用程序。

The Update 1 in the question has solved my problem and I am now able to run my application.

这答案是一样回答,我可以两天后做标记的问题。

This answer is just to mark the question as answered which I can do after two days.

这篇关于Android的 - Proguard的重复拉链录入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆