Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

library resolve to a path with no project.properties file

I'm having trouble building my project with Jenkins and referencing the Sherlock project library.

I can build the project with ant on my local system. The problem seems to be referencing the Sherlock library on the build server.

I pass an environment variable to ant with the relative path to the Sherlock library project:

android.library.reference.1=../../buildlibraries/androidlibraries/sherlock/library

I'm getting this error.

**BUILD FAILED**
/SDK/android-sdk-macosx/tools/ant/build.xml:595: 
The following error occurred while executing this line:
/SDK/android-sdk-macosx/tools/ant/build.xml:571: 
../../buildlibraries/androidlibraries/sherlock/library resolve to a path with 
no project.properties file for project /Users/Jenkins/buildlibraries/androidlibraries/sherlock/library

I checked and a project.properties file does exist at that location.

It has these properties:

android.library=true
# Project target.
target=android-14
like image 941
user2271490 Avatar asked Apr 11 '13 18:04

user2271490


1 Answers

I had the same thing happen to me just now. I use both a Windows and Mac to develop with. I watne d to test my project on both platforms. It built just fine on my Windows machine, but broke on my Mac. When I looked at my project.properties in my Android application (not library projects) on the Mac, I saw that my library projects were referenced this way:

android.library.reference.1=LibraryProjects\\my_lib_project

I changed it to the line below, and it worked just fine!

android.library.reference.1=LibraryProjects/my_lib_project
like image 66
Joey Herrington Avatar answered Nov 16 '22 03:11

Joey Herrington