码迷,mamicode.com
首页 > 编程语言 > 详细

java.io.IOException: The same input jar is specified twice

时间:2016-03-15 13:42:54      阅读:476      评论:0      收藏:0      [点我收藏+]

标签:

简介: eclipse android proguard 打包时出现 java.io.IOException: The same input jar is specified twice 错误,

这里给出解决办法    

升级到高版本的 android sdk 之后发现 proguard 打包app 时出现The same input jar ***.jar is specified twice 的错误,导致混淆失败无法打包出新版本,

百度google 都不能解决 愁死了。    

通过一天的折腾人都要崩溃了,

最终还是被我找到了解决办法。

解决方法如下:

打开 proguard.cfg 在所有的-libraryjars 前插入 # 成 #-libraryjars xxxx.jar

原因分析,可能是高版本的 sdk 通过 proguard 混淆代码时默认已经将 lib目录中的 jar 都已经添加到打包脚本中,所以不需要再次手动添加。

java.io.IOException: The same input jar is specified twice

标签:

原文地址:http://www.cnblogs.com/butterfly-clover/p/5279100.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!