请帮助修复以下错误。目前正在尝试使用PhoneGap.I集成Facebook Android SDK。我遵循了以下教程:http://www.youtube.com/watch?v=mlpBgWiel2w和github资源:https://github.com/davejohnson/phonegap-plugin-facebook-connect.git,但得到以下错误:-
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;发布于 2013-03-06 20:43:18
我在eclipse中遇到了同样的问题,我做了以下工作,它为我工作:
1-右键单击您的Android项目
2- 属性>>> Java Build Path
3-单击Android Dependencies
4-单击Remove >>> OK
5-运行Android项目
发布于 2014-02-25 13:43:34
这是一个非常容易解决的问题,尽管这似乎是一个很难解决的问题。
1.Just make a copy of the project.
2.run the the copy of the project thats it!!!因为这个步骤对我很有效
发布于 2014-06-17 07:26:21
我有这个问题,但可能已经解决了。在platforms/android中,运行:
find . -name "AsyncFacebookRunner.class"对我来说,这在platforms/android/ant-build/和platforms/android/FacebookLib/ant-build中都找到了类。因为将有一个来自FacebookLib的jar,所以这个类将多次结束。我设法解决了这个问题,方法是确保Eclipse已关闭,然后从platforms/android、platforms/android/FacebookLib和platforms/android/CordovaLib中删除所有bin、gen、ant-build和ant-gen目录,然后再次运行构建命令。在那之后,上面的find命令只在FacebookLib/ant-build中找到了类的一个副本。
https://stackoverflow.com/questions/14825086
复制相似问题