Intergrate proguard with android in mac os x -
i'm struggeling intergrated proguard android in mac os computer. proguard android sdk located @ :
/users/thanhnguyen/documents/mr thao's music/android-sdk-macosx/tools/proguard
proguard.sh file @ follow :
proguard_home=`dirname "$0"`/.. java -jar $proguard_home/lib/proguard.jar "$@"
my project.properties follow:
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
when try run proguard, errors occured :
proguard returned error code 1. see console proguard error 1 output: error: /users/thanhnguyen/documents/mr thao (no such file or directory) @ com.android.ide.eclipse.adt.internal.build.buildhelper.runproguard(buildhelper.java:623) @ com.android.ide.eclipse.adt.internal.project.exporthelper.exportreleaseapk(exporthelper.java:259) @ com.android.ide.eclipse.adt.internal.wizards.export.exportwizard.doexport(exportwizard.java:313) @ com.android.ide.eclipse.adt.internal.wizards.export.exportwizard.access$0(exportwizard.java:238) @ com.android.ide.eclipse.adt.internal.wizards.export.exportwizard$1.run(exportwizard.java:223) @ org.eclipse.jface.operation.modalcontext$modalcontextthread.run(modalcontext.java:121)
what missing here? alot!
the problem have apostrophe in folder name ("mr thao's music").
when proguard reads in file name, hits the apostrophe , thinks has reached end of file name, why error shows looking directory called /users/thanhnguyen/documents/mr thao
.
i either rename directory or move proguard home elsewhere. in general, special characters in file or path names not idea, cause issues this.
alternatively, manually pass directory in java -jar command
in progaurd.sh , escape single quote/apostrophe backslash so:
java -jar "/users/thanhnguyen/documents/mr thao\'s music/android-sdk-macosx/tools/proguard/lib/proguard.jar" "$@"
keep in mind method cause issues if project shared other people, directory wrong them.
Comments
Post a Comment