Android stuido 打包 The same input jar is specified twice 问题
来源:互联网 发布:淘宝卖家服务态度评分 编辑:程序博客网 时间:2024/06/06 16:33
开始看到还以为是上述依赖的地方重复写两次一样的jar包,不过很快就被自己否定了,两个重复的jar包,在写代码的时候就提示出错了。结果还是默默打开Google:在 Android Studio 中, build.gradle 中声明了对这个 jar 包的依赖,则不需要在混淆配置文件中继续声明。
在将所有的 -libraryjars libs/*.jar 注释掉以后,项目可以正常混淆了。
或者这样:
原因是build.gradle文件配置了
- 1
- 2
- 3
- 1
- 2
- 3
里面已经添加过jar包,混淆文件proguard.cfg里面又加了句-libraryjars libs/***.jar
,将-libraryjars libs/***.jar
前面用#号注释或者直接删掉即可。
sdk 通过 proguard 混淆代码时默认已经将 lib目录中的 jar 都已经添加到打包脚本中,所以不需要再次手动添加。
阅读全文
1 0
- Android stuido 打包 The same input jar is specified twice 问题
- 解决 The same input jar is specified twice 问题
- Android Studio 'The same input jar is specified twice'
- android studio 代码混淆打包错误 The same input jar is specified twice
- android studio 代码混淆打包错误 The same input jar is specified twice
- 关于Android Studio 打包出现 The same input jar is specified twice 的解决办法
- android打包时The same input jar is specified twice 解决办法
- The same input jar ***.jar is specified twice
- 安卓应用打包时出现The same input jar * is specified twice.
- java.io.IOException: The same input jar is specified twice.
- java.io.IOException: The same input jar is specified twice”
- The same input jar is specified twice 解决办法
- java.io.IOException: The same input jar [***\libs\android-support-v4.jar] is specified twice
- android studio 代码混淆如何忽略第三方jar包 The same input jar is specified twice
- java.io.IOException: The same input jar [***\libs\javastruct-0.1.jar] is specified twice
- java.io.IOException: The same input jar [E:\Jre\lib\rt.jar] is specified twice.
- 解决The same input jar alipaySingle-20170510.jar] is specified twice.
- java.io.IOException: The same input jar XXX is specified twice
- (转载)浅谈高端CPU Cache Page-Coloring
- xml中mybatis符号sql写法
- obc学习笔记5
- 测试环境服务器配置、生成环境服务器配置、测试机配置
- BZOJ 1823 [JSOI2010]满汉全席题解
- Android stuido 打包 The same input jar is specified twice 问题
- 复杂链表复制
- linux下MongoDB客户端shell基本操作
- 让EditText不能自动获取焦点
- 仿淘宝、京东、美团使用ViewPager+GridView实现左右滑动查看更多分类导航功能
- STM32,IIC总线。
- 机器学习——DBN深度信念网络详解
- mysql
- C++递推算法求解兔子产仔问题