How do you open an Android Studio project in Eclipse? How do you open an Android Studio project in Eclipse? android android

How do you open an Android Studio project in Eclipse?


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


It's not possible. We intend to add support for Gradle-based project in ADT but it's not currently possible.


Step-by-Step process to import Android Studio Project into Eclipse...

  1. Start new Android Project in eclipse using wizard and fill following details from app/build.gradle

    ApplicationName and ProjectName : - You can find project name from .iml file in / folderPackageName : MinSDK, TargetSDK and CompileSDK

  2. Click Next in the wizard and make sure that you have "unchecked" 'Create Activity' and "Create Custom Icon". Click Finish.

  3. Open AndroidManifest.xml file in new created project. Copy "application", "uses-permission" etc tags as is from app/src/main/AndroidManifest.xml

  4. Source Files : Replace all contents in AndroidStudio/app/src/main/java to Eclipse//src folder.

  5. Resource Files : Replace all contents in AndroidStudio/app/src/main/res to Eclipse//res folder.

  6. Library files : Copy all libs from AndroidStudio/app/libs to Eclipse//libs folder.

  7. Dependency Library : Import and Add AppCompact as a dependent library using Properties->Android->Library->Add

  8. Resolve any errors to build. Clean and Build again as a last step.

  9. You may not be able to deploy it directly onto a phone but you can find .apk file generated in bin folder.