views:

33

answers:

1

Hi, I have been trying to work with a Library Project, just like it's mentioned in the documentation : http://developer.android.com/guide/developing/eclipse-adt.html

I have created my Library Project as a Android 1.6 Project and now I have been trying to reference to it out of my second project (also an Android 1.6 project) and I am getting the following error : "Target 'Android 1.6' does not support building project with libraries." "ERROR: Unknown option '--auto-add-overlay'"

The documentation states that supported platfroms are the 1.5 onwards (with exception for the 2.0 & 2.0.1) and that the second project should have the same platform or higher (in my case the same)...

So any idea what's ahppening here ? And most importantly : any idea how to solve this ? Thx in advance !

A: 

How is the library project compiled as? is it a jar file? And in eclipse, did you add it in Eclipse as "Project Name" -> Right click -> Configure build path -> Libraries. Click on Add External jars and add your jar file.

omermuhammed
it is NOT compiled, as stated in my question it's a Library Project... Thats a specific Android functionality with which it is possible to create a project which can be used as an external library... This livrary does not get compiled per se, but is compiled when a projet using it gets compiled...Also I did include the project succesfully, thats not the problem...
TiGer
If it is compiled when the project using it is compiled, make it a dependent project in Eclipse? Did you try that?
omermuhammed