Android Studio 发布APK时报错:input jar file is specified twice
2016-12-26 16:45
387 查看
今天在发布一个比较老的项目时候,一直报这个错误,这个项目是通过AS导入原来的eclipse项目代码,字面意思可以看出是由于两次引入jar包文件导致的,找了下发现确实有两次引入:
eclipse默认的混淆文件(proguard.cfg而大部分人的是proguard-rules.pro),还有就是AS的build.gradle文件;
在eclipse的混淆文件引入jar包的文件的方式是:-libraryjars libs/android-support-v4.jar,只要在这里把它注释掉或者删掉就可以了!删除build.gradle文件中的引用是不行的,会报错!
eclipse默认的混淆文件(proguard.cfg而大部分人的是proguard-rules.pro),还有就是AS的build.gradle文件;
在eclipse的混淆文件引入jar包的文件的方式是:-libraryjars libs/android-support-v4.jar,只要在这里把它注释掉或者删掉就可以了!删除build.gradle文件中的引用是不行的,会报错!
相关文章推荐
- 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编译报input jar file is specified twice
- 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 代码混淆打包错误 The same input jar is specified twice
- android studio 代码混淆打包错误 The same input jar is specified twice
- android studio 代码混淆如何忽略第三方jar包 The same input jar is specified twice
- java.io.IOException: The same input jar is specified twice”
- android打包时The same input jar is specified twice 解决办法
- Android stuido 打包 The same input jar is specified twice 问题
- 解决 The same input jar is specified twice 问题
- AndroidApk混淆编译时,报告java.io.IOException: The same input jar[xxx/xxx.jar]is specified twice.
- 解决The same input jar alipaySingle-20170510.jar] is specified twice.
- Android Studio 'The same input jar is specified twice'
- The same input jar is specified twice 解决办法
- java.io.IOException: The same input jar XXX is specified twice
- java.io.IOException: The same input jar is specified twice
- 生成Release-apk报错:The same input jar is specified twice 解决办法
- The same input jar ***.jar is specified twice