Because Android itself is Linux, in order to avoid all kinds of unnecessary pits, so the development of Android under Linux. Of course not familiar with Linux, choose Windows Development is the same, no problem, personal habits. Say something about my development environment, Ubuntu 14.04 (This is the newest STL), JDK 1.7.0.
The first is the installation of the JDK, this online has a lot of blog can see, not tired of the operation, choose the corresponding version of the line, remember to configure the environment variables. Then the installation of the Android SDK. Recommended on the official website is that the novice chooses to install the ADT bundle version, this ZIP package contains the required To develop tools (including ADT, SDK), even the eclipse configuration is also saved, this certainly saves a lot of things, if you are developed with IntelliJ idea, directly download the SDK and then configure, how to configure can be found on the Internet. As for the SDK downloading under Linux is very Slow, you can use Thunder in Windows to download the first, and then copy the line, note is to click the following DOWNLOAD for other platforms instead of the DOWNLOAD SDk (otherwise you download the window version).
Download the ZIP package after decompression can be used directly, in the open process will ask you to feedback useful information to Google, this look at their own choice, and then you can create an Android project. The first time I need to restart Eclipse to run an Android virtual machine, I don't know if I need to reboot.
Here's a demonstration of a HelloWorld program I built myself.
Create a new Android project
Project name and application name is called HelloWorld
Then all the way next to the end, the middle will create an activity
Create a new virtual machine, name or whatever, parameters look at their own settings
Click Run as to select Android application
The virtual machine can see our HelloWorld program after running.
Click Execute to see the on-screen output of Hello world!