简体   繁体   中英

SDK integration in android

I have added Facebook SDK and Google-play-services_lib as library in my project . I have deleted android-support-v4.jar from my project Lib folder. Now I am facing with following problem

[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;

This means that you have multiple files defined for your project settings.

For that,

Go to the,

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

To be more specific -

Just removing the facebook-android-sdk.jar file from libs worked for me as well as it refers to the facebook related jar which I had in multiple.

Remove this error by following these steps:

  1. Right click on the project and open the properties.
  2. Go to 'Java Build Path..'
  3. Go to Order & Export tab. Unmark 'Android Private Libraries' & Click 'OK'.

and clean your project. It works.

只需从Java Build Path -> Order and Export取消选中您的Android Dependencies复选框。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM