在项目加入混淆之后,导出都会提示
- Conversion to Dalvik format failed with error 1
解决方法:
在 android-sdk-windows\tools\proguard\bin目录找到:
用记事本打开,内容如下:
- @ECHO OFF
-
- REM Start-up script for ProGuard -- free class file shrinker, optimizer,
- REM obfuscator, and preverifier for Java bytecode.
-
- rem Change current directory and drive to where the script is, to avoid
- rem issues with directories containing whitespaces.
- cd /d %~dp0
-
- IF EXIST "%PROGUARD_HOME%" GOTO home
- SET PROGUARD_HOME=..
- :home
-
- set java_exe=
- call "%PROGUARD_HOME%"\..\lib\find_java.bat
-
- call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %*
把
- call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %*
改为:
- call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
转载自 http://hsx9566.iteye.com/blog/1142002
即可!
linc注:帮了个大忙呀。