尝试构建 Phonegap 项目时出现 Eclipse 错误
每当我尝试在 Eclipse 中启动 Phonegap 应用程序时,都会收到此错误: 转换为 Dalvik 格式失败:无法执行 dex:多个 dex 文件定义 Lcom/phonegap/api/IPlugin;
这种情况在 Android 工具更新到 R14 后立即发生。更新到R15后问题依然存在。
我的一个朋友能够在运行早期版本的 SDK 工具的机器上成功构建相同的代码。
在搜索并看到类似错误消息的各种解决方案后,我尝试完全删除 Android SDK 和 Eclipse 并重新安装,但没有效果。
除了尝试在某个地方找到早期版本的 SDK 工具之外,还有其他建议吗?
I'm getting this error any time I try to launch my Phonegap application in Eclipse:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/phonegap/api/IPlugin;
This started happening immediately after updating to R14 of the Android tools. The problem persists after updating to R15.
A friend of mine is able to successfully build the same code on a machine running an earlier version of the SDK tools.
After searching around and seeing various solutions to similar error messages, I've tried completely removing the Android SDK and Eclipse and reinstalling to no effect.
Short of trying to find an earlier version of the SDK tools somewhere, does anybody have any other suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

好的,我假设您的构建路径中没有两个版本的phonegap.jar,所以我建议:
希望这有帮助。
Okay, I'm assuming you don't have two versions of the phonegap.jar in your build path so I would suggest:
Hope that helps.