Proguard error preventing APK from building with “returned error with error code 1”

拜拜、爱过 提交于 2019-12-11 10:27:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!