Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set the Android library absolute path in ant.properties?

Tags:

android

build

Whenever I set

android.library.reference.1=G\:Projects\Android\library\core\

in ant.properties, I get the following error while building:

G\:Projects\Android\library\core\ resolve to a path with no project.properties
file for project G:\Projects\Android\library\test

The path is correct, and the folder does contains project.properties file. How do I resolve this issue? Does android build only take in terms of relative path?

like image 941
Azlam Avatar asked Oct 28 '11 06:10

Azlam


2 Answers

Yeah, it doesn't work with absolute paths -- just use relative, ie the one with lots of ../..

like image 118
pelotasplus Avatar answered Oct 05 '22 07:10

pelotasplus


Try using Unix style delimitters, '/' not '\' e.g.

workspace.dir=/dev/projects/EclipseIndigo/AndroidWorkTwo

The above line works for me in Windows

like image 45
NickT Avatar answered Oct 05 '22 08:10

NickT