views:

155

answers:

2

How do you convert an existing project into an Android project in Eclipse?

In particular, I want to convert a plain old Java project into an Android Library project.

Thanks.

+1  A: 

What subsystem/plugin are you using for Eclipse Android development?

Generally speaking, the process is called "changing the project nature" e.g.,

http://enarion.net/programming/tools/eclipse/changing-general-project-to-java-project/

Uri
Thanks Uri. That seems to be the first step of a (or the only) way to do this.
hgpc
Thanks, worked for me! I created a new Android project and then copied parts of its .classpath and .project files over to my existing project.
Pēteris Caune
A: 

Are you aware of this guide?

I don't know if there's a way to convert an existing Java project, but if not I'd suggest building a new library project as described and then moving your code to it.

JRL
Yes, I'm aware of it, but it's more about converting an existing Android project into an Android Library project. Building a new project from scratch is not that hard, but I wanted to know if there was an easier way to do it.
hgpc