First way
- Install ADT Plugin
- Right click on java project
- Choose Android> Convert to Android Project.
- If necessary, put
/res folder /AndroidManifest.xml and /default.properties .
Second method: UPD
Actually, "First Way" does not work with the latest versions of the ADT plugin, for some reason Google removed the convert command. Another way:
- Check java project in VCS (svn or git or something else)
- Remove it from the workspace
- Import project from VCS
- In import mode, select Create a new project โ Android
Third way
Why not just copy the sources to the newly created Android project :)?
Fourth way: UDP :)
- Delete java project from workspace
- Start creating a new Android project project
- Select create from existing source option and specify java project folder.
Konstantin burov
source share