Android : Configure proguard.sh with proguard and Mac OS

on Sunday, August 31, 2014


Im trying to export android apk with proguard, however this error occured :



Users/thanhnguyen/Documents/mr thao's music/android-sdk-macosx/tools/proguard/bin/proguard.sh: line 10: "/Users/thanhnguyen/Documents/mr thao's music/android-sdk-macosx/tools/proguard": No such file or directory
Unable to access jarfile /Users/thanhnguyen/Documents/mr
at com.android.ide.eclipse.adt.internal.build.BuildHelper.runProguard(BuildHelper.java:623)
at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:259)
... 4 more


It seems that I must configure file proguard.sh, the default is :



PROGUARD_HOME=`dirname "$0"`/..

java -jar $PROGUARD_HOME/lib/proguard.jar "$@"


My proguard.jar is at : /Users/thanhnguyen/Documents/mr thao's music/android-sdk-macosx/tools/proguard on Mac OS.


I tried to set but didn't work :



PROGUARD_HOME="\"/Users/thanhnguyen/Documents/mr thao's music/android-sdk-macosx/tools/proguard\""

java -jar "$PROGUARD_HOME/lib/proguard.jar" "$@"


How could I change proguard.sh, if not change, what could be the rearson for proguard error?


Thanks a lot!


0 comments:

Post a Comment