我开发了一个应用程序。当我试图运行它说"Conversion to Dalvik format failed with error 1
“如何解决转换为Dalvik格式失败,出现错误
我在这里#1给出了一些解决方案尝试。
- 确保没有重复的罐子
- 改变proguard的消息
仍然是相同的..有没有其他的解决方案呢?为什么会发生这种错误?
我开发了一个应用程序。当我试图运行它说"Conversion to Dalvik format failed with error 1
“如何解决转换为Dalvik格式失败,出现错误
我在这里#1给出了一些解决方案尝试。
仍然是相同的..有没有其他的解决方案呢?为什么会发生这种错误?
这个错误有几个原因,我从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
转到项目,然后取消选择“自动构建”。然后尝试导出项目和错误消失。
有几个建议[这里](http://stackoverflow.com/questions/2680827/conversion-to-dalvik-format-failed-with-error-1-on-external-jar)。我经常使用的一个方法是确保项目的libs文件夹中没有jar文件。 – 2014-10-08 18:21:04
任何以前的错误,实际上会告诉哪里出了错? – laalto 2014-10-09 05:52:31