Convert java project to android project on Eclipse

I saw a question about converting android to java project. Now I want to learn about converting a Java project into an Android project. Is there anyway? Thanks

+7
source share
2 answers

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.
+10
source

All Articles