Skip to content
David Carver edited this page Apr 2, 2015 · 2 revisions

How do I import/convert an existing ADT project to work with Andmore.

There are two ways, first is using an existing workspace with existing ADT projects. The second is using a new workspace and importing the projects using the Import Existing Android code wizard.

If you have an existing eclipse workspace with ADT projects already. It is not recommended to have Andmore and ADT installed into the same instance of eclipse, but you can open the same workspace with Andmore and then convert the projects so they are usable by Andmore.

  1. Open the workspace with your existing projects.
  2. Select the ADT related projects, and then bring up the context menu.
  3. Select Configure->Convert to Andmore Project

This will update the projects so they use the correct Nature Ids, builders, and classpath container entries.

The second method is to start with a clean workspace, and use the Import Existing Android code wizard.

To import and existing ADT project using Andmore please try the following:

  1. File->Import->Android->Existing Android Code into Workspace
  2. Navigate to where you have your Android source code, and point the wizard to the source code you want to import.
  3. If you want to copy the project into the existing workspace, you can.

As long as the project is in the legacy format for ADT, it will copy in the project, and set it up with the new project nature and location of the gen folders.

You can test this out by installing the Android Samples, and pointing the wizard to:

ANROID_HOME/samples/android-18/BluetoothChat

Projects that are in the Android Studio/Gradle format will need some manual help to setup the directory structure correctly. In this case, it is best to use something like the Andmore fork of the m2e-android plugin and have a maven project setup.

We need to be able to better handle the different structure that Android Studio and Gradle introduced, but it should get you at least going with existing ADT code.

Clone this wiki locally