[問題] facebook SDK 的android-support-v4

看板AndroidDev作者 (overture1928)時間13年前 (2012/12/13 01:05), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/1
各位前輩好 小弟又來請教問題了@@ 真不好意思 == 這次問題是這樣子的 下載了 facebook SDK 之後 用 Eclipse 匯入 facebook 資料夾之後 有了 facebook 這個 library 看網路的文章 繼續建立一個專案 並且在該專案 [properties] 的 [Android] 引用 facebook 這個 library 結果專案上面就出現錯誤的紅色叉叉 錯誤訊息如下 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 thistime). All versions of the libraries must be the same at this time. Versions found are: Path: C:\Eclipse\eclipse\AndroidCode\FB_Test\libs\ android-support-v4.jar Length: 385685 SHA-1: 48c94ae70fa65718b382098237806a5909bb096e Path: C:\Eclipse\eclipse\facebook-android-sdk-3.0.2.b\facebook\libs\ android-support-v4.jar Length: 349252 SHA-1: 612846c9857077a039b533718f72db3bc041d389 Jar mismatch! Fix your dependencies = 爬文之後得知是 因為該專案裡面同時有兩個 android-support-v4.jar 找到的解決辦法是 移動 facebook 裡面的 jar檔 或是把 jar檔 名字改掉 可是問題還是沒有解決 = 請問這樣的情況該怎麼解決呢 拜託大大們解答了 麻煩了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.244.55.146 ※ 編輯: laiair 來自: 60.244.55.146 (12/13 01:07)

12/13 23:39, , 1F
你可以把其中一個jar砍掉,然後copy另外一個jar過去用
12/13 23:39, 1F

12/13 23:39, , 2F
就是用一個版本的jar就好
12/13 23:39, 2F
文章代碼(AID): #1GoBbshH (AndroidDev)
文章代碼(AID): #1GoBbshH (AndroidDev)