问题
The issue is when trying to build a signed APK, it errors at the last step with this:
[2013-06-20 11:39:34 - MyApp] Proguard returned with error code 1. See console
[2013-06-20 11:39:34 - MyApp] Unable to access jarfile /Users/rob/Android
I am using the latest Eclipse ADT v22.0.1-685705 (just installed this morning) and it seems like this issue has been around for at least a month now according to Google.
回答1:
In order to fix this,
Change:
java -jar $PROGUARD_HOME/lib/proguard.jar "$@"
To:
java -jar "$PROGUARD_HOME/lib/proguard.jar" "$@"
in this file <Android SDK Location Here>/sdk/tools/proguard/bin/proguard.sh
Credit here
来源:https://stackoverflow.com/questions/17218226/proguard-error-preventing-apk-from-building-with-returned-error-with-error-code