2014-10-08 241 views
0

我开发了一个应用程序。当我试图运行它说"Conversion to Dalvik format failed with error 1如何解决转换为Dalvik格式失败,出现错误

我在这里#1给出了一些解决方案尝试。

  1. 确保没有重复的罐子
  2. 改变proguard的消息

仍然是相同的..有没有其他的解决方案呢?为什么会发生这种错误?

+0

有几个建议[这里](http://stackoverflow.com/questions/2680827/conversion-to-dalvik-format-failed-with-error-1-on-external-jar)。我经常使用的一个方法是确保项目的libs文件夹中没有jar文件。 – 2014-10-08 18:21:04

+0

任何以前的错误,实际上会告诉哪里出了错? – laalto 2014-10-09 05:52:31

回答

0

这个错误有几个原因,我从Project - > Build Automatically取消选择“Build Automatically”选项,然后清理项目并Build all。

但是阅读本,它的工作对我来说:

http://viktorbresan.blogspot.com.tr/2012/10/conversion-to-dalvik-format-failed-with.html

的解决将是以下:你需要 代码/分配/可变字符串 添加到您的-optimizations命令! ProGuard配置文件。煤矿如下所示:

-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable 
0

转到项目,然后取消选择“自动构建”。然后尝试导出项目和错误消失。

相关问题