How do you open an Android Studio project in Eclipse?

SolidSnake4444 picture SolidSnake4444 · May 25, 2013 · Viewed 59.5k times · Source

The new Android Studio allows for better Android development with better tools. I see a bunch of questions on how to transfer an eclipse project to android studio but what about the other way?

If you make an Android app in Android Studio, can you bring it back to Eclipse? If so, how?

This would be needed for specific eclipse plugins, such as the Blackberry Android plugin.

Thank you.

Answer

Santacrab picture Santacrab · Jan 16, 2014

You cannot import the project directly but it's not to hard to achieve it:

  • Create a new Android empty project in eclipse
  • Overwrite the fresh res/ folder and the AndroidManifest.xml file, with the ones from the Android Studio project
  • Copy the content of the java/ folder from the Android Studio project (it should contain your package name folder structure, like com/example/app/, and the java files of course) in the Eclipse src folder
  • Link your needed libraries if it's the case

Basically the Android application fundamental elements are the java files, the manifest file and the resources. From there you can build back a project in your favorite IDE