Home » Android » build – How do you set the Android library absolute path in ant.properties?

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

Posted by: admin June 15, 2020 Leave a comment

Questions:

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?

How to&Answers:

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

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

The above line works for me in Windows

Answer:

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

Answer:

Neither of these solutions worked for me. I ended up having to reset the workspace by doing the following.

Preferences – General – Startup and Shutdown – Workspaces

Then I just selected the workspace that was there and removed it. That was the only way I could get it to work. Hope this helps someone else!