1. 程式人生 > >Found 2 versions of android-support-v4.jar in the dependency list,The type android.support.v4.app.Fr

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

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包有兩個,衝突了。