I use a Java Project for a library.

Seems if you use an Android project in Eclipse as library, you will have big
troubles.

Just use the Java project and remove the standard JRE from the build path
and add the android.jar in the build path. That should do the tick.

BR,
Adrian Vintu

http://adrianvintu.com

On Wed, Mar 3, 2010 at 3:28 PM, MobDev <[email protected]> wrote:

> Hi,
> I'd like to create a own Android Library, as in a JAR file with
> specific functionality which I can later re-use in future projects...
> This Library will also include basic Archtiecture components...
> Now I was wondering what type of Project should I be using for this in
> Eclipse ?
> Should it be a specific Android Project (thus having all res/gen/
> R.java/AndroidManifest etc) or just a "normal" "plain" Java project ?
> The first option would obviously be specific for Android, including
> and importing Andorid-specific api's... But to me it seems that such a
> project is only usable for an application and not a library ?
> The second option would make it more like a simple clean Api/Library,
> but might obviously try to use specific Java libraries which aren't
> accessible in Android...
> So my question woul be :
> is an Android Project usable for creating a Library (JAR) ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to