解决办法"/>
The same input jar is specified twice 解决办法
The same input jar is specified twice 解决办法
Android studio打包中遇到了这样的问题
Warning:Exception while processing task java.io.IOException: The same input jar […….jar] is specified twice.
解决方法如下:
打开 proguard.cfg
在所有的-libraryjars
前插入 # 成 #-libraryjars xxxx.jar
原因分析
原因是build.gradle文件配置了
dependencies {compile fileTree(include: '*.jar', dir: 'libs')
}
里面已经添加过jar包,混淆文件proguard.cfg里面又加了句-libraryjars libs/***.jar
,将-libraryjars libs/***.jar
前面用#号注释或者直接删掉即可。
sdk 通过 proguard 混淆代码时默认已经将 lib目录中的 jar 都已经添加到打包脚本中,所以不需要再次手动添加。
更多推荐
The same input jar is specified twice 解决办法
发布评论