开发者

android error Conversion to Dalvik format failed with error

开发者 https://www.devze.com 2023-03-11 00:53 出处:网络
I am create android application. In application arise one error arise like Conversion to Dalvik format failed with error 1

I am create android application. In application arise one error arise like Conversion to Dalvik format failed with error 1 So I开发者_如何学JAVA will do the following step. Go to Project » Properties » Java Build Path » Libraries and remove all except the "Android X.Y" (in my case Android 1.5). click OK. Go to Project » Clean » Clean projects selected below » select your project and click OK

But can't solve the problem So please give me another solution.

Thanks in advance.


Windows 7 Solution if you are using proguard to obfuscate your code:

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
0

精彩评论

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