i have made a project in Android Studio , now i want to import that project into Eclipse, there are options to convert eclipse to Android Studio , but how to convert Android
IMPORTING FROM ANDROID STUDIO INTO ECLIPSE
http://www.nodeclipse.org/projects/gradle/android/Importing-from-Android-Studio-into-Eclipse describes steps needed
Copy-paste here as of September 2014
welcome to raise issue on GitHub.
First, it is easier to create project with Eclipse-ADT, add build.gradle
and import into Android Studio
by selecting that build.gradle
, then other way around.
see step 2 below
Multi-project.project
file into root
MyApplicationName
(you can also use Nodeclipse CLI )
e.g. from froject root C:\Users\username\AndroidStudioProjects\MyApplicationName
run nodeclipse -g
Copy that path (e.g. in Android Studio "Copy Path" Ctrl+Shift+C),
in Eclipse File -> Import -> General / Existing Project into workspace
At this point, you don't really need to have ADT. Eclipse is like Viewer,
but you already can launch Gradle build
, installDebug
or run on Device (when you have defined run
task)
Further operation you can do within Eclipse
mobile
or wear
) do2.1 Add 2 standard .files for Android project as below
(you can get them by creating new project with Eclipse-ADT,
only need to change "src" path="src/main/java"
):
.project
:
MyApplicationName-mobile
com.android.ide.eclipse.adt.ResourceManagerBuilder
com.android.ide.eclipse.adt.PreCompilerBuilder
org.eclipse.jdt.core.javabuilder
com.android.ide.eclipse.adt.ApkBuilder
com.android.ide.eclipse.adt.AndroidNature
org.eclipse.jdt.core.javanature
.classpath
:
(source: nodeclipse.org)
2.2 create OS symbolic links
On Lunix
ln -s src/main/res res
ln -s src/main/AndroidManifest.xml AndroidManifest.xml
On Windows I don't yet know grace way that would work always:
symbolic links on Windows
mklink /D res src/main/res
mklink AndroidManifest.xml src/main/AndroidManifest.xml
Windows 7 has mklink util, but it just did not work on my PC.
I found a great Junction util
and could do junction res src/main/res
, but for link to file is created .lnk file (aka Windows shortcut).
I discovered that Git Bash can execute ln -s src/main/AndroidManifest.xml AndroidManifest.xml
but it creates copy, not link.
(source: nodeclipse.org)
2.3 Add gen
folder
2.4 add project.properties
target=android-15
2.5 Import as existing project
click on mobile
, Ctrl+Alt+C
File -> Import -> General / Existing Project into workspace
DONE.
Of course limitations are:
libs
folder are shared of course)Good things are:
http://www.nodeclipse.org/projects/gradle