Since the use of Android studio, I believe that 100% of students will not want to switch back to eclipse. I used to think that eclipse was very useful and very happy, but now I think Eclipse is a slag. Android Studio based on IntelliJ idea couldn't find any reason for me to refuse. But one thing may be a little uncomfortable, that is, Android Studio is based on Gradle to build projects, many students are not used to, and most of the projects are still packaged with Ant. so the question is, how do I import the Eclipse project into Android studio?
Google offers a way to:
As shown, select Generate Gradle build files in the Eclipse Export and then import in Android Studio OK.
But if I just don't want to use Gradle, or the other small partner of the project is using the Eclipse+ant way, I found a way. here are the steps to be introduced:
I am using the latest version of Android studio so far: 1.2.
Step One:
As shown in is a typical eclipse project.
Open the Open project in Android Studio, and note that the project is not imported :
Choose Our Project
Step Two:
After opening the core operation came, note!!!
You see this thing, click Configure.
Click OK.
Haha, or the original taste, or the original feeling ~ there is a very happy wood, but can not run Ah, Java files are also red ~ ~ ~ Below is the core of the operation:
Note--------------------------------------------------
Click in the red area, and then press the F4 key when selected. Here is the configuration of the ~
Configuration of the first item:
The second is the focus:
As shown, select the red box position from left to right, then click on the src folder of the list, then mark as Sources above. After this step is completed, point application, haha, you will find:
The Java file is no longer red and has been identified. So you can run, of course, you can also go to configure other things, such as Lib,proguard, here will not expand said.
Step Three:
Here's how to run the program.
Open this.
Click the plus sign to add Android application.
Name take one by itself; module select Minesweeper; start mode Select a real machine or simulator; click Apply.
You will find this is the way to do it!!!
Step Four:
Click Run, and then enjoy it!!!!!!!
There should be no problem here, at least I tried.
Life is still in constant toss, maybe we already know this method, anyway I was 1.1 point toss out, I think it is very useful, there will be no gradle related things in the inside.
The book Mountain has the No Royal road as the path, the abyss of misery is the boat.
We encourage each other!
Import an Eclipse project into Android Studio in a non-gradle way