2014-09-26 49 views
0

我在我的項目中添加了Facebook SDK和Google-play-services_lib作爲庫。我從我的項目Lib文件夾中刪除了android-support-v4.jar。現在我面臨以下問題Android中的SDK集成

[2014-09-26 15:47:47 - Dex Loader] Unable to execute dex: Multiple DEX files define Lcom/facebook/android/AsyncFacebookRunner$1; 
[2014-09-26 15:47:47 - Mmatching] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/facebook/android/AsyncFacebookRunner$1; 
+0

只需從'Java Build Path - > Order and Export'中取消選中'Android Dependencies'複選框。 – Piyush 2014-09-26 11:41:49

+0

@感謝PG_Android。我的問題解決了。 – 2014-09-26 11:45:25

+0

如果這有幫助,你可以接受作爲答案。 – Piyush 2014-09-26 11:57:06

回答

2

這意味着您有多個爲您的項目設置定義的文件。

爲此,

轉到,

Project Properties -> Java build path -> Libraries -> Remove Android dependencies

更具體 -

剛剛從庫取出facebook-android-sdk.jar文件爲我工作的,以及它是指到我有多個facebook的相關jar。

0

刪除此錯誤通過以下步驟:

  1. 右鍵單擊該項目,並打開屬性。
  2. 轉到'Java Build Path ..'
  3. 轉至訂單&導出選項卡。取消標記'Android私人圖書館'&點擊'確定'。

並清理您的項目。有用。

0

只需取消選中Android Dependencies複選框從Java Build Path -> Order and Export