美文网首页
The same input jar xxx is specif

The same input jar xxx is specif

作者: 往有趣的方向生长 | 来源:发表于2018-01-31 09:24 被阅读0次

从Eclipse导入工程到Android Studio,打包出现以下错误

解决方案:删除proguard配置文件中的jar包引用

说明:

-libraryjars:引用jar包,相当于类文件中的import,当你需要在proguard脚本中,配置jar包相关的混淆时,就得通过 -liraryjars引入对应jar包

在使用Eclipse+ADT时,就需要使用-libraryjars将所引用的jar包添加到打包脚本。

但在使用Android Studio开发时,则不需要,因为AS默认已经将lib目录中的jar都添加到打包脚本中,所以不需要再次手动添加,否则就会出现"java.io.IOException: The same input jar xxx is specified twice."的错误

相关文章

网友评论

      本文标题:The same input jar xxx is specif

      本文链接:https://www.haomeiwen.com/subject/rnfkzxtx.html