Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proguard error: Expecting class path seperator - not sure where I need to put a path in quotes

The error:

BUILD FAILED
C:\workspace\projectName\add-proguard-release.xml:35: Expecting class path separator ';' before 'Files\eclipse\android-sdk-windows\platforms\android-3\android.jar' in argument number 1

I am fully aware that my problem is that I have eclipse+android in the c:\program files\eclipse directory - and the space between 'program' and 'files' is causing this problem.

I am also aware that a solution is to put this path in quotes.

My problem is WHERE to put these quotes. I'm a bit of an ANT noob: and am following the directions I found here: http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html

I'm currently trying to figure out enough more about how ANT works with PROGUARD to know where to wrap a path with quotes - and how (I'm worried it's in XML and not sure what kind of processing is going to happen to escape characters etc)

I have as a backup plan to move everything out of "program files" - but I'd really like to solve this problem correctly, and feel moving the project is a hack/admitting defeat.

like image 520
Mampersat Avatar asked Dec 05 '10 02:12

Mampersat


2 Answers

In Eclipse: Window > Preferences > Android > SDK Location

use something like c:\Progra~1\android-sdk (or maybe c:\Progra~2\android-sdk on 64bit)

like image 199
Mark Avatar answered Oct 23 '22 23:10

Mark


This worked for me:

add following line to your default.properties file:

external.libs.dir=libs

Source: http://zed.0xff.me/2010/12/22/expecting-class-path-separator-before-in-argument-number-1

like image 1
olafure Avatar answered Oct 23 '22 23:10

olafure