Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 986
dylan murphy Avatar asked Jun 09 '11 20:06

dylan murphy


2 Answers

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.

like image 60
Jiju Induchoodan Avatar answered Nov 09 '22 10:11

Jiju Induchoodan


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.

like image 26
Box Avatar answered Nov 09 '22 09:11

Box