Google recently launched a new development tool for Android Studio at the Google I/O conference. This is a development tool based on the IntelliJ IDE, built using Gradle, and believe that the tool is known to all children who have done Java. Today I installed the next taste of fresh, open a look in fact, and before the IntelliJ IDE created Android project is the same, is to have done some simplification. Don't say much nonsense start our tutorials for everyone to taste.
1. First you need to download it to the Android official website and then install it.
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 post-installation directory structure
We can see that the above is the post-installation directory, where we can see the "SDK" folder, which is the Android SDK, this time Google directly packaged the SDK under the development tool.
Then we can click "Studio.exe" to run it up.
After double-clicking, an interface pops up to create a new project for us.
Ps: Here's what this project,android studio does in project and Eclipse, where "new project" is the equivalent of creating a new workspace workspace. The module is actually the project that eclipse created, and may not be used to just start using it. Default creation
3. The next step is to start creating the project.
This step is the same as the Eclipse creation project. The only difference is that there is a module name.
Here's a little explanation.
Application Name: App Name
Module Name: The name of the project (created below will automatically create the name of project that has the same name as workspace)
Here, I've chosen theme as none.
The next step is going to be the same as eclipse.
This is the directory after the creation is complete.
Open the layout file, found that the right side of the layout can be seen in real time ah, this function feels good.
Run it and look at the effect:
The next row: myfirstandroid Green triangle is running the program, the right beetle is the debug program.
The wrench icon is set, the right side is the project structure, and the right side is the Create AVD, which is the simulator. The other eclipse is the same icon.
The effect of running is as follows:
Next, how to create a new module and then run it again.
Choose the interface that File->new module appears, select Android Application Choose Next, there is the same process as just, step by step to create a complete.
We saw a secondandroid project.
How to run it, select
Edit configurations, click on the green "+" sign on the left and select Android application.
Occurs,
Fill in the name, select Module, and the emulator, and then you can select the app you want to run and run it up.
Hehe write a bit more, give everyone taste fresh ha. Android Studio is currently in its 1.0 version, and it is relatively stable to suggest that you continue to use eclipse. There's time to play, huh?
Android Studio Download installation using tutorials