Found 2 versions of android-support-v4.jar in the dependency list,The type android.support.v4.app.Fr

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/com_it/article/details/79465815
1、 Found 2 versions of android-support-v4.jar in the dependency list,
 but not all the versions are identical (check is based on SHA-1 only at this time).
 All versions of the libraries must be the same at this time.
Versions found are:
 Path: D:\AndroidCode\SlidingMenu-master\library\libs\android-support-v4.jar
  Length: 385685
  SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
 Path: D:\AndroidCode\SlidingMenuDemo\libs\android-support-v4.jar
  Length: 621451
  SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4

 Jar mismatch! Fix your dependencies

在eclipse创建android项目的时候,默认会带有一个android-support-v4.jar,当你导入其他开源库项目的时候,这会有两个这种架包,所以删掉一个即可

解决:把你项目的libs包下的android-support-v4.jar删掉即可

2、The type android.support.v4.app.FragmentActivity cannot be resolved. 

这个问题可能有两种情况:1,可能是你没有正确导入库项目,库项目必须和你的项目在同一个盘符下,
                                        2,可能 你的v4包有两个,冲突了。

猜你喜欢

转载自blog.csdn.net/com_it/article/details/79465815