Objective:
I wanted to do it a long time ago, but for a variety of reasons, I didn't get it.
Today there is a predecessor who puts forward demand. Say you want to move Eclipse's Android project to Android studio, but worry that Android studio won't fit in three moments.
Say can not change the source code of the main working directory (in the Eclipse Android Project root/Src, Res, LIB, androidmanifest.xml four directories) to develop on Android studio?
Premise:
I see this blog crossing has been familiar with Android studio enough
(How is it familiar enough?)
1. At least your Android studio is ready to run. And not like other classmates say. My Android studio has been running out of time.
2. Know what the Android build tool is Gradle? At least your environment (command line cmd) on the gradle-v can see your gradle version
3. Knowing that project for Android Studio is equivalent to Eclipse's workspaces, Module corresponds to Eclipse's project
4. Know the Android Module root directory distribution (BUILD,LIBS,SRC and Build.gradle files) of Android Studio, and what's inside.
Let's start with the text:
If you have been to Android studio students can not read this article. Because you are already familiar with Android studio.
1. As above topic. Eclipse and Android Studio two IDE's Android project because the working directory is not the same, so it is not well compatible with the development.
If you read some of the articles. (Http://www.tuicool.com/articles/2q6fMr),
Know how Android project is packaged (Eclipse uses ant,android studio with Gradle)
So how do you switch the IDE to develop it if they're not the same way of packing?
2. We know Google is going to get more Android developers ' Ides from Eclipse to Android Studio. There is one operation. is to directly import Eclipse's Android project
See here. The same doctrine. Are you talking nonsense? Do you want to keep looking?
Although you can import the project directly, after importing it, you find that the project has changed dramatically in the working directory of Android Studio. (It turns out to be an Android studio project)
3. Because there are two points above, so this article only need to appear.
(In fact, the working principle of this article is very simple.) is to adapt to the script that runs on Android studio and change the Gradle, as to how Gradle's script is written. It will be mentioned below. )
Preparatory work:
1. Create a new Android project that good one can run (HelloWorld).
2. Right-click the damn Project Export
Suddenly something's up. Subsequent
about how eclipse joins the Gradle file with Android Studio two platforms, working directory does not change