Eclipse混淆文件导入Android Studio Gradle编译报input jar file is specified twice
2014-12-17 12:11
531 查看
Eclipse项目中的混淆配置文件 复制到AS中 在混淆的过程中提示如下错误
解决方案:
删除
原因是build.gradle文件配置了
compile fileTree(include: '*.jar', dir: 'libs')
}
[/code]
里面已经添加过jar包,混淆文件proguard-rules.pro里面又加了句-libraryjars libs/***.jar,将-libraryjars libs/***.jar 前面用#号注释或者直接删掉即可。
[code]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/***.jarfrom your proguard-rules.pro file.
原因是build.gradle文件配置了
[code]dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
}
[/code]
里面已经添加过jar包,混淆文件proguard-rules.pro里面又加了句-libraryjars libs/***.jar,将-libraryjars libs/***.jar 前面用#号注释或者直接删掉即可。
相关文章推荐
- Eclipse混淆文件导入Android Studio Gradle编译报input jar file is specified twice
- Eclipse移植Android Studio Gradle编译报Execution failed for task 文件混淆错误input jar file is specified twice
- Android Studio 代码混淆Gradle编译报input jar file is specified twice
- Eclipse移植Android Studio Gradle编译报Execution failed for task 文件混淆错误input jar file is specified twice
- android studio 代码混淆打包错误 The same input jar is specified twice
- android studio 代码混淆如何忽略第三方jar包 The same input jar is specified twice
- Android Studio 发布APK时报错:input jar file is specified twice
- android studio 代码混淆打包错误 The same input jar is specified twice
- AndroidApk混淆编译时,报告java.io.IOException: The same input jar[xxx/xxx.jar]is specified twice.
- Android打包混淆报The same input jar [*.jar] is specified twice 的错误
- the same input jar is specified twice
- The same input jar is specified twice 解决办法
- android打包时The same input jar is specified twice 解决办法
- 将Eclipse文件导入到Android studio后编译遇到的一些问题(一)
- 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
- The same input jar ***.jar is specified twice
- java.io.IOException: The same input jar XXX is specified twice
- 生成Release-apk报错:The same input jar is specified twice 解决办法