关于从别处导入工程进eclipse后,res的values中styles中<style name="AppBaseTheme"出现问题解决办法

导入appcompat_v7库,作为库add到你从别处拉过来的工程中。


可能会出现的问题:

剧情是这样,我的app要使用两个library,如:LibraryA,LibraryB。这两个库又都需要support.v4.jar。

由于加载的时间不同,所以两个support.v4.jar不同,出错的提示如下:

[2012-09-28 16:37:22 - ] Found 3 versions of android-support-v4.jar in the dependency list,
[2012-09-28 16:37:22 - ] but not all the versions are identical (check is based on SHA-1 only at this time).
[2012-09-28 16:37:22 - ] All versions of the libraries must be the same at this time.
[2012-09-28 16:37:22 - ] Versions found are:
[2012-09-28 16:37:22 - ] Path: /home/zkw/workspace/MyApp/libs/android-support-v4.jar
[2012-09-28 16:37:22 - ] Length: 247894
[2012-09-28 16:37:22 - ] SHA-1: 7329492e76650ee661f6af7704b0c79151d8e1ef
[2012-09-28 16:37:22 - ] Path: /home/zkw/workspace/LibraryB/library/libs/android-support-v4.jar
[2012-09-28 16:37:22 - ] Length: 271754
[2012-09-28 16:37:22 - ] SHA-1: 53307dc2bd2b69fd5533458ee11885f55807de4b
[2012-09-28 16:37:22 - ] Path: /home/zkw/workspace/LibraryA/libs/android-support-v4.jar
[2012-09-28 16:37:22 - ] Length: 247894
[2012-09-28 16:37:22 - ] SHA-1: 7329492e76650ee661f6af7704b0c79151d8e1ef
[2012-09-28 16:37:22 - ] Jar mismatch! Fix your dependencies

 

从提示中可以知道,这三个support-v4.jar不同,所以会发生冲突,解决方法就是,把其中某个不同的,比如LibraryB/library/libs中的support-v4.jar文件删掉,然后刷新这个包,让他重新生成,然后就OK了


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值