[英]How to solve the Conversion to Dalvik format failed with error
I've developed an app. 我已经开发了一个应用程序。 and when I tried to run it says
"Conversion to Dalvik format failed with error 1
" 当我尝试运行它时,提示
"Conversion to Dalvik format failed with error 1
”
I've tried at some solutions given in Stackoverflow here. 我在这里尝试了Stackoverflow中给出的一些解决方案。
and still its the same.. is there any other solution for this? 还是一样..还有其他解决方案吗? and why does this error occurs ?
为什么会出现此错误?
This error has several causes, i unselect "Build Automatically" option, from Project -> Build Automatically, Then clean the project and Build all. 此错误有多种原因,我从“项目”->“自动构建”中取消选择“自动构建”选项,然后清理项目并全部构建。
But read this, it worked for me: 但是请阅读以下内容,它对我有用:
http://viktorbresan.blogspot.com.tr/2012/10/conversion-to-dalvik-format-failed-with.html http://viktorbresan.blogspot.com.tr/2012/10/conversion-to-dalvik-format-failed-with.html
The fix would be the following: you need to add !code/allocation/variable string to your -optimizations command in ProGuard config file.
解决方法如下:您需要在ProGuard配置文件的-optimizations命令中添加!code / allocation / variable字符串。 Mine looks like the following:
我的看起来像这样:
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable
转到项目,然后取消选中“自动生成”。然后尝试导出项目,错误消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.