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

来源:互联网 发布:对于网络诈骗如何处理 编辑:程序博客网 时间:2024/06/06 15:51

在http://stackoverflow.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

1 0
原创粉丝点击