Google has launched a new development tool, Android Studio, at the Google I/O conference. This is a development tool based on the IntelliJ IDE, built using Gradle, I believe that the children's shoes who have done Java know this tool. Today I installed a taste of fresh, open a look in fact and the previous IntelliJ IDE to create the Android project is the same, is to do some simplification. Not much nonsense to start our tutorial ha, for everyone to taste.
1, first you need to go to Android's official web download it, and then install.
Http://developer.android.com/sdk/installing/studio.html#download
2, installation and the usual is a step-by-step down the good. Look at the installed directory structure
We can see the above is the installation of the directory, where we can see the "SDK" folder, which is the Android SDK, this time Google directly to the SDK packaged under the development tool.
Then we click on "Studio.exe" that can be run up.
After double-clicking, a popup interface is needed to create a new project.
Ps: Here's what this Project,android studio project is not like in Eclipse, where "new project" is equivalent to creating a new workspace workspace. The module is actually the project that eclipse created, and it's just starting to be used. Create by default
3. The next step is to start creating the project.
This step is actually the same as the Eclipse creation project. The only difference is that there is a module name.
Here's a little explanation.
Application Name: applying names
Module Name: The name of the project (created by automatically creating the name of project with the same name as workspace)
Here, I choose Theme as None.
The next step is the same as eclipse.
This is the case when the completed directory is created.
Open the layout file to open, found on the right side can be seen in real time layout of the situation Ah, this function feels good.
Run it up and look at the effect:
Say this row: the green triangle next to the myfirstandroid is running the program, the right beetle is the debug program.
Wrench icon is set, right is the project structure, and then the right is to create AVD is also the simulator. The other eclipse is the same icon.
The effect of the operation is as follows:
Next, how to create a new module, and then run it again.
Select the interface file->new module appears, choose the Android application select Next, there is the same as the same process, step-by-step to create a complete.
We've seen a secondandroid project.
How to run it, select
Edit configurations, click on the Green "+" number on the left, and choose android Application.
The following diagram appears,
Fill in Name, select Module, and Simulator, and then you can select the application you want to run to run it.
Hey, I wrote a bit more, for everyone to taste fresh ha. Android Studio is currently only 1.0, suggesting that you continue using eclipse, which is relatively stable. Have time to play, ha.