开发者

Application giving "Conversion to Dalvik format failed with error 1" error while trying to run

I have developed an android application.But when i try to run the code its shows error message

Description Resource   Path             开发者_StackOverflowLocation   Type
---------------------------------------------------------------------------------
Conversion to Dalvik   VMSApplication   Unknown    Android Packaging Problem
format failed with 
error 1

Has someone faced this problem before...

Thanks in advance

--

[2011-06-24 16:34:45 - VMSApplication] Dx   at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
[2011-06-24 16:34:45 - VMSApplication] Dx   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
[2011-06-24 16:34:46 - VMSApplication] Dx 1 error; aborting
[2011-06-24 16:34:46 - VMSApplication] Conversion to Dalvik format failed with error 1


You don't say what version of the android SDK you are running or what platform. You might try this solution for Windows 7 Solution:

Confirmed the problem is caused by ProGuard command line in the file
[Android SDK Installation Directory]\tools\proguard\bin\proguard.bat

Edit the following line will solve the problem:

call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %*

to

call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %1 %2 %3 %4 %5 %6 %7 %8 %9


One solution could be to clean and restart the eclipse,this may help.Also check out these links link1 and link2


I got that error because I was trying to build when connected to emulator

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜