如何修复使用PhoneGap的Facebook的Andr​​oid SDK中集成了以下错误 [英] how to fix the following error for facebook android sdk integration using Phonegap

查看:128
本文介绍了如何修复使用PhoneGap的Facebook的Andr​​oid SDK中集成了以下错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮忙解决下面的错误。目前尝试使用PhoneGap.I来整合Facebook Android SDK中已经按照本教程: http://www.youtube .COM /手表v = mlpBgWiel2w 以及github上的资源:的https:/ /github.com/davejohnson/phonegap-plugin-facebook-connect.git
但得到了波纹管的错误: -

 错误在一个XML文件:中止建设。
   错误的XML文件:中止建设。
   地塞米松装载机]无法执行DEX:多DEX文件定义LCOM / Facebook的/安卓/ AsyncFacebookRunner $ 1;
   转换成Dalvik的格式失败:无法执行DEX:多DEX文件定义LCOM / Facebook的/安卓/ AsyncFacebookRunner $ 1;
   无法执行DEX:多DEX文件定义LCOM / Facebook的/安卓/ AsyncFacebookRunner $ 1;
    转换成Dalvik的格式失败:无法执行DEX:多DEX文件定义LCOM / Facebook的/安卓/ AsyncFacebookRunner $ 1;
   无法执行DEX:多DEX文件定义LCOM / Facebook的/安卓/ AsyncFacebookRunner $ 1;
    转换成Dalvik的格式失败:无法执行DEX:多DEX文件定义LCOM / Facebook的/安卓/ AsyncFacebookRunner $ 1;


解决方案

我有同样的问题的和我做了以下,它的工作对我来说:

1右键点击您的Andr​​oid项目结果
2 - 属性 >>> Java构建路径结果
3单击 Android的依赖关系结果
4-点击删除 >>> 确定结果
5运行Android项目

Please help to fix the following error. Currently trying to integrate Facebook Android SDK using PhoneGap.I have followed this tutorial:http://www.youtube.com/watch?v=mlpBgWiel2w and github resources:https://github.com/davejohnson/phonegap-plugin-facebook-connect.git But got the bellow error:-

   Error in an XML file: aborting build.
   Error in an XML file: aborting build.
   Dex Loader] Unable to execute dex: Multiple dex files define Lcom/facebook/android/AsyncFacebookRunner$1;
   Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/facebook/android/AsyncFacebookRunner$1;
   Unable to execute dex: Multiple dex files define Lcom/facebook/android/AsyncFacebookRunner$1;
    Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/facebook/android/AsyncFacebookRunner$1;
   Unable to execute dex: Multiple dex files define Lcom/facebook/android/AsyncFacebookRunner$1;
    Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/facebook/android/AsyncFacebookRunner$1;

解决方案

I had the same problem in eclipse and I did the following and it worked for me:

1- Right click your Android project
2- Properties >>> Java Build Path
3- Click on Android Dependencies
4- Click Remove >>> OK
5- Run Android project

这篇关于如何修复使用PhoneGap的Facebook的Andr​​oid SDK中集成了以下错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆