4

I would like to know if it is possible to import an android studio project to eclipse.

So far I tried:

  • Import directly from eclipse: imported a bunch of weird projects without any code

  • It seems like InteliJ has an export to eclipse feature, but I don't see any reference to it in android studio...

Thanks!

lage
  • 589
  • 2
  • 5
  • 18
  • 1
    I'm not sure why this question was down voted. The problem lies in having multiple modules each with their own resources and manifest files. I had to manually paste each of my classes and files into their appropriate packages, combine all the manifest files into one and paste each of the resources into the res folder to get it to work. PS. don't forget to import the external libraries. +1 to this question – Ushal Naidoo Apr 08 '14 at 05:29
  • Possible duplicate of [How do you open an Android Studio project in Eclipse?](http://stackoverflow.com/questions/16745793/how-do-you-open-an-android-studio-project-in-eclipse) – BSMP Jul 17 '16 at 20:35

3 Answers3

0

the best solution so far is to copy each XML and JAVA ... into the new project manually .

it is hard but it works

Sadik anass
  • 282
  • 4
  • 9
0

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

Irshad
  • 3,071
  • 5
  • 30
  • 51
Amal Dev S I
  • 938
  • 13
  • 18
-3

Yes you can. In eclipse, select file > import > Android > Existing code into workspace and click import.

That's it.

djhs16
  • 471
  • 1
  • 5
  • 12
  • Really wish it was that simple! When I try to do something like that it detects 5 or more projects when I select my android studio project, and none of them gets any of the code... – lage Aug 08 '13 at 15:48
  • actually I didn't use Android Studio but I thought it should work on InteliJ because it works with netbeans. – djhs16 Aug 08 '13 at 15:57
  • This imports the project with empty src directory. Does not work! – JaydeepW May 30 '14 at 22:54