简体   繁体   English

新的Eclipse和Android安装-转换为Dalvik格式失败,错误1

[英]New Eclipse & Android Install - Conversion to Dalvik format failed with error 1

I have just installed a brand new copy of Eclipse and Android SDK. 我刚刚安装了Eclipse和Android SDK的全新副本。 Yet when I try to run a simple Android program I get the error: "Conversion to Dalvik format failed with error 1" 但是,当我尝试运行一个简单的Android程序时,出现错误: “转换为Dalvik格式失败,错误为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. 我已经尝试了从“清理项目”,修改“ proguard.bat”,甚至从Proguard 4.4升级到4.7的所有解决方案,但是这些解决方案都无法使用。

Any ideas? 有任何想法吗?

This is really disappointing! 这真令人失望!

NOTE - Using Eclipse 3.7.1 on XP 注意 -在XP上使用Eclipse 3.7.1

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. 当我切换到4.0.3时,Eclipse决定两次导入Android库,这给了我这个错误。

What version of Eclipse are you running? 您正在运行什么版本的Eclipse?

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 外部JAR上的“到Dalvik格式的转换失败,错误1”

One of those solutions should solve the problem 这些解决方案之一应该可以解决问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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