简体   繁体   English

转换为Dalvik格式失败,错误1

[英]Conversion to Dalvik format failed with error 1

i guess there are a lot of reasons why Conversion to Dalvik format could fail with error 1, and there are alot of solutions offered in SO, but none of them worked for me... after wasting hours i finally managed to solve it... i will post my own solution for this question for later reference and for the community. 我猜有很多原因导致向Dalvik格式的转换可能因错误1而失败,并且在SO中提供了许多解决方案,但是这些解决方案对我都不起作用...经过数小时的浪费,我终于设法解决了。我将针对这个问题发布自己的解决方案,以供以后参考和社区使用。 i hope this will be a time saver! 我希望这将节省时间!

  1. go to Project tab 转到项目标签
  2. disable Build Automatically 自动禁用构建
  3. remove bin library from your project 从您的项目中删除Bin库
  4. enable Build Automatically 自动启用构建
  5. try again! 再试一次!

I am convinced that the anwser from Ofek works. 我坚信Ofek的解决方案有效。 Although let me clear it for you. 虽然让我为您清除。

Usually dalvik problems happen when you have conflits with libraries in your project maybe because you added a library twice. 通常,当您与项目中的库冲突时,可能会出现dalvik问题,可能是因为您两次添加了库。

Maybe one in a lib folder and another from the Properties -> Java Build Path -> Libraries 也许一个在lib文件夹中,另一个在属性-> Java构建路径->库中

Only one library should be used. 仅应使用一个库。

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

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