Eclipse混淆文件导入Android(安卓)Studio Gradle编译报input jar file is specified twice
16lz
2022-08-01
Eclipse项目中的混淆配置文件 复制到AS中 在混淆的过程中提示如下错误
Error:Execution failed for task ':app:proguardDemoRelease'.> java.io.IOException: The same input jar [D:\Users\workspace_studio\Test5\app\libs\fastjson.jar] is specified twice.
解决方案:
删除 -libraryjars libs/***.jar
from your proguard-rules.pro file.
原因是build.gradle文件配置了
dependencies { compile fileTree(include: '*.jar', dir: 'libs')
}
里面已经添加过jar包,混淆文件proguard-rules.pro里面又加了句-libraryjars libs/***.jar,将-libraryjars libs/***.jar 前面用#号注释或者直接删掉即可。
更多相关文章
- NPM 和webpack 的基础使用
- 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
- 读取android手机流量信息
- android 使用html5作布局文件: webview跟javascript交互
- Android(安卓)多媒体扫描过程(Android(安卓)Media Scanner Proces
- android“设置”里的版本号
- Android开发环境搭建
- Android(安卓)Resource介绍和使用
- 2014.01.21 ——— android 关联android-support源码