Type Conversion to Dalvik format failed: Unable to execute dex: wrapper was not properly loaded first

强颜欢笑 提交于 2019-12-10 14:57:32

问题


I have had all sorts of bizarre errors, like the one in the title, happen when I am using the Android SDK and AVD Manager with Eclipse. Generally I just unplug the phone and plug it back in or close and reopen Eclipse but it is frustrating. Apparently Conversion to Dalvik format failed: Unable to execute dex: wrapper was not properly loaded first doesn't allow me to compile my app, i think it is because I was trying to run the emulator with some suggestions from emulator is so slow to no avail. thought i should add im running eclipse 3.5.2 on Ubuntu 11.04


回答1:


Just restart the eclipse and run the project. The error arises while installing a new target version. After completion of the installation it will get fix automatically. Else restart eclipse.




回答2:


I met with the same error on my Macbook. I tried one of the methods explained at this link http://techmologies.blogspot.com/2009/05/conversion-to-dalvik-format-failed-with_06.html and solved the problem.

Put the following 2 lines in the eclipse.ini file:

-vm
C:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe

Please modify the 2nd line according to the actual situation.




回答3:


If you have upgraded your SDK, and if you have not updated ADT plugin it will show this error. Please check it once by updating ADT plugin




回答4:


I made a new installation of Eclipse in different folder(with the same SDK folder) and imported the code to the workspace & it started to work again.



来源:https://stackoverflow.com/questions/6298790/type-conversion-to-dalvik-format-failed-unable-to-execute-dex-wrapper-was-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!