First step: Install the JDK and configure the JDK environment variables
Step two: Download and install eclipse
The above two steps on the internet are not detailed
Step three: Download and install the Android SDK
The Android SDK provides the API libraries needed to develop Android applications and the development tools needed to build, test, and debug Android applications.
Turning on http://developer.android.com/sdk/index.html, we found that Google offers Android developer Tools integrated with Eclipse, Because we have already downloaded eclipse this time, we chose to download the Android SDK separately.
After downloading, double-click Install, specify the Android SDK installation directory, in order to facilitate the use of the Android SDK contains the development tools, we in the system environment variable path set the Android SDK installation directory under the Tools directory.
In the Android SDK installation directory, double-click "SDK Manager.exe" to open the Android SDK Manager,android SDK Manage is responsible for downloading or updating different versions of the SDK package, we see the default installed Android SDK The manager installs only one version of SDK tools.
Open the Android SDK Manager, which will get an installable version of the SDK, but there are walls in the country, sometimes there will be a failure to obtain.
From the log window that pops up, we can see that the connection "https://dl-ssl.google.com" failed. We ping the command, found that the network does not pass.
From the universal Internet, we have found a solution to this problem, but also effective.
Change the Host file
First change the host file, the host file in the C:\Windows\System32\drivers\etc directory, with Notepad to open the "hosts" file, the following two lines of information appended to the hosts file at the end, save. If your WINDOWS8 system may not have permission to modify the host file, you can right-click the Hosts file and set the Users group to a permission that can be fully controlled by the hosts file.
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
The above two lines in the host file mean that local access dl.google.com and dl-ssl.google.com are directed to a server with an IP address of 203.208.46.146.
Change the HTTPS request on the Android SDK manage to an HTTP request
Open the Android SDK Manager, in the Options under Tools, there is a force https://..sources to be fetched using http://. Check this one out and you can.
Then open the Android SDK Manager.exe, you can normally download the various versions of Android SDK. You only need to select the installation package you want to install or update, click Install in the lower right corner packages ... Installation can be done. This is a more time-consuming process, and there will be a failure to download, and the failed installation package will only need to be re-selected before it can be installed.
Fourth step: Install the ADT plugin for Eclipse
We have already configured the Java Development environment, installed the IDE to develop Android, downloaded and installed the Android SDK, but Eclipse has not been associated with the Android SDK, that is, they are now independent of each other. To make Android apps easier to create, run, and debug, Android's development team specifically customized a plugin for the Eclipse IDE: Android Development Tools (ADT).
Here's how to install ADT online:
To launch Eclipse, click on the Help menu, Install New software ..., click Add ... in the popup dialog box. Button.
Then enter in the location in the popup dialog: Http://dl-ssl.google.com/android/eclipse/,Name can enter ADT and click "OK" button.
In the dialog box that pops up, select the tool you want to install, and the next step is ready.
After installation, you will be asked to restart Eclipse,eclipse will intelligently associate it with the Android SDK in the same directory according to the directory location, and if you have not installed any version of Android SDK through the SDK Manager tool, it will alert you to install them immediately.
If eclipse does not automatically correlate the installation directory of the Android SDK, you can select Windows---Preferences in the open eclipse, and you will see the Android settings in the popup panel, filling in the installed SDK path, The platform packages that you just installed in the SDK will appear, and you can complete the configuration by pressing OK.
Here, we build on the Android development environment on Windows, when you use Eclipse's file--"new--" Project ... When you create a new project, you'll see the option to build an Android project.
Fifth step: Create the AVD simulator
Enter the Android AVD on the command line or open Eclipse click on the icon to the right of Android, the AVD Settings screen appears, click the Create button to new
Click OK to create the success
Sixth step: Establish the project
Select the appropriate build SDk
Configure icon for Application Launcher, which is set by default.
Select the app activity type. Choose Blackactivity here.
Define activity details. The default setting is used here. Click Finish.
Preview. After completion, run the change program, showing the results such as.
This process will be a little longer, about 2-3 minutes, because this simulator to run the Android system after the installation of your application, the boot is generally required to unlock the emulator, the old version you can press the menu key, the new version you need to manually swipe the screen unlock key.
You can see the app we created
Android Development Environment Building tutorial