Norse
Norse

Reputation: 1

Proguard in eclipse, failing almost before it starts

This is a real newbie question. I installed proguard, and am trying to export my first app with it. I am getting the following error (real path substituted) in my eclipse console.

[2011-10-13 10:11:56 - RobotInvaders] Proguard returned with error code 1. See console [2011-10-13 10:11:56 - RobotInvaders] Unable to access jar file "/[workspace path]/android-sdk-mac_x86/tools/proguard/lib/proguard.jar"

But I can access it through my xterm. There are no spaces or strange characters in the workspace path. I even changed the permissions with no effect. At first I thought some environment variable might be missing, but the error knows enough to get the whole correct path. The error comes up after about 30 - 45 seconds

Any clues?

Upvotes: 0

Views: 1246

Answers (2)

moberme
moberme

Reputation: 689

In C:\android-sdk\tools\proguard\bin\ edit proguard.bat

Delete these three lines

IF EXIST "%PROGUARD_HOME%" GOTO home
SET PROGUARD_HOME=..
:home

Replace with the path of your sdk tools. My path is..

SET PROGUARD_HOME="C:\android-sdk\tools\proguard"

Upvotes: 2

Related Questions