In eclipse, unable to reference an android library project in another android project

Welcome to ScriptMode
DroidMaster
Posts: 74
Joined: Wed Aug 26, 2015 8:32 am

In eclipse, unable to reference an android library project in another android project

Postby DroidMaster » Thu Feb 11, 2016 5:55 am

As I was writing up this question I managed to solve it so repeat it here for the benefit of others. Here is the initial problem:

I have created a very simple library project which I want to reference in another project. I have done this previously with no problems so not really sure why it is not working this time. I have:

Flagged the library project via project properties. The default.properties file has this set : android.library=true

In my other project added reference to my library project via project properties. The default.properties file has the reference added as expected ie android.library.reference.1=K:/android_test_ws/applicationRegistrar

The green tick against the referenced library project starts off green and then changes to a red cross.

This implies that there must be something wrong / missing from the library project but I don't know what. My library project on this occasion is MUCH simpler than the previous one I created.

senthilbaskaran
Posts: 144
Joined: Tue Dec 08, 2015 5:52 am

Re: In eclipse, unable to reference an android library project in another android project

Postby senthilbaskaran » Tue Apr 19, 2016 12:28 pm

You can try with this solution which I found when I was looking for the default.properies file of the referencing project (not the library) in my file system. Although the referencing project was in the same eclipse workspace as the library project, the actual files were somewhere else in the file system ie they were'nt in the same parent folder of the library project. As soon as I placed the referencing project in the same physical folder as the library project it all went fine.

gopikrishna
Posts: 172
Joined: Sat Aug 08, 2015 2:08 pm

Re: In eclipse, unable to reference an android library project in another android project

Postby gopikrishna » Tue Apr 19, 2016 12:40 pm

Hi,

Click on the below link to download Eclipse.

https://eclipse.org/downloads/


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests