Android Sdk Tools Revision 12 Has Problem With Proguard => Error Conversion To Dalvik Format Failed With Error 1
Solution 1:
The problem is caused by ProGuard command line in R12 in the file [Android SDK Installation Directory]\tools\proguard\bin\proguard.bat. Simply edit the following line will solve the problem.
Change
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
Solution 2:
I downloaded Proguard 4.6 and copied the contents of /lib and /bin into /tools/proguard/ which fixed the problem.
Solution 3:
The only solution i've found to this problem is to change, in proguard.cfg
-optimizationpasses 5
to
-optimizationpasses 2
Solution 4:
I encountered the same issue with Android SDK Tools Rev 16 attempting to export a signed application package from Helios Eclipse 3.6 on Mac OS X 10.7.2 for execution on a Samsung Galaxy Nexus 4.0.2 build ICL53F
Problem:
[2012-01-1103:15:46 - Chapter 8Where Am I] Proguard returned witherror code 1. See console
[2012-01-1103:15:46 - Chapter 8Where Am I] proguard.ParseException: Unknown option'8' in argument number 9
[2012-01-1103:15:46 - Chapter 8Where Am I] at proguard.ConfigurationParser.parse(ConfigurationParser.java:170)
[2012-01-1103:15:46 - Chapter 8Where Am I] at proguard.ProGuard.main(ProGuard.java:491)
Answer :
cd /Applications/android-sdk-mac_x86/tools/proguard/bin
then modify file proguard.sh
as follows:
# java -jar "$PROGUARD_HOME"/lib/proguard.jar "$@"
java -jar "$PROGUARD_HOME"/lib/proguard.jar "$1""$2""$3""$4""$5""$6""$7""$8"
Solution 5:
I just fixed this issue by downloading the the R11 installer from http://dl.google.com/android/installer_r11-windows.exe and replacing the \tools directory with this one: Run the downloaded installer. Specify a different destination folder than the regular install and click through to Install. At then end you can uncheck "Start SDK Manager...", and click [Finish]. The installer will create a \tools directory in that different folder. Rename your regular "\android-sdk-windows\tools" directory, and copy that \tools directory to your regular "\android-sdk-windows\" directory. The project should now build without the "Error 1". I haven't looked into what is different in the 2 directories yet.
Post a Comment for "Android Sdk Tools Revision 12 Has Problem With Proguard => Error Conversion To Dalvik Format Failed With Error 1"