[Android 硬件] Eclipse错误:Conversion to Dalvik format failed with error 1

时间:2021-10-30 09:14:18

http://*.com/questions/2680827/conversion-to-dalvik-format-failed-with-error-1-on-external-jar中我试了两种方式可以解决我的问题。

1、Build Automatically选项不打勾进行打包。

You can solve this issue easily (with Eclipse Android Developer Tools, Build: v22.0.1-685705) by turn off menu > "Project" > "Build Automatically" while exporting (un)signed Android application. After that, don't forget to turn it on again. 

2、修改SDK目录android-sdk\tools\proguard\bin下的proguard.bat文件

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