新日食& Android 安装 - 转换为 Dalvik 格式失败,错误 1
我刚刚安装了全新的 Eclipse 和 Android SDK。然而,当我尝试运行一个简单的 Android 程序时,我收到错误: “转换为 Dalvik 格式失败,错误 1”
我已经尝试了“清理项目”、修改“proguard.bat”、甚至从 Proguard 4.4 升级到 4.7 中的所有解决方案,但这些解决方案都不起作用。
有什么想法吗?
这真是让人失望啊!
注意 - 在 XP 上使用 Eclipse 3.7.1
I have just installed a brand new copy of Eclipse and Android SDK. Yet when I try to run a simple Android program I get the error:
"Conversion to Dalvik format failed with error 1"
I have tried all the solutions from "Cleaning the Project", modifying "proguard.bat", even upgrading from Proguard 4.4 to 4.7 yet none of those solutions work.
Any ideas?
This is really disappointing!
NOTE
- Using Eclipse 3.7.1 on XP
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当我多次链接库时,我遇到了此错误。右键单击您的项目并转到“构建路径”->“构建路径”配置构建路径。检查库选项卡并确保您没有两次导入相同的库。当我切换到 4.0.3 时,Eclipse 决定导入 Android 库两次,导致出现此错误。
I've gotten this error when I've had a library linked more than once. Right click on your project and go to Build Path -> Configure Build Path. Check the libraries tab and make sure you aren't importing the same library twice. When I switched to 4.0.3 Eclipse decided to import the Android libraries twice giving me this error.
您运行的是哪个版本的 Eclipse?
我自己也遇到过这个问题几次,通常您尝试的解决方案对我有用,但是对于本主题中的错误有深入的讨论。
“转换为 Dalvik 格式失败,错误 1”在外部 JAR
这些解决方案之一应该可以解决问题
What version of Eclipse are you running?
I have had this problem few times myself, usually the solutions you tried work for me, however there is an indepth discussion about the error in this topic.
"Conversion to Dalvik format failed with error 1" on external JAR
One of those solutions should solve the problem