解决Android Studio 或eclipse运行时出现Duplicate files copied in APK main/AndroidManifest.xml

本文详细介绍了在使用Android Studio过程中遇到的导入.jar包时报错问题,包括错误信息解释、解决方法(如提取jar包、物理删除AndroidManifest.xml文件、使用标准Java jar console工具重建jar包),并通过在Eclipse中执行这些步骤成功解决实际问题。

            今天在android studio的工程中导入.jar包时,编译时没有报错,可是到运行时却出现,Duplicate files copied in APK main/AndroidManifest.xml

在google上搜索得到如下方法:

         

1) Extract jar
2) Physically remove Manifest
3) Rebuild jar using standard java jar console tool

After doing this check, if the structure of the old jar is the same in the new jar (you might need some tries, if you're not used to using jar)

在android studio中无法更改jar包内容,于是用eclipse做了如上操作,并将更改后的包重新导入,最终完美实现,没有报错了。


解决问题的网址:https://github.com/kontaktio/Android-SDK/issues/38

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值