This article is from the " lone wolf " blog, please make sure to keep this source http://332374363.blog.51cto.com/5262696/1310882
In addition, when building an Android development environment, you also refer to the http://www.apkbus.com/android-641-1-1.html
referenced by:http://wenku.baidu.com/view/6108ac19b7360b4c2f3f6406.html
One, assuming you have nothing now, then you need to download the following things:
1.JDK (Javadevelopmentkit), the official website to download the latest version can be, the old point is not very big problem.
2.Eclipse (an open-source, Java-based, extensible development Platform)
3.ADT, Android Development plugin.
4.AndroidSDK (This is just a download tool, not a real SDK)
1.jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html
2.eclipse:http://www.eclipse.org/downloads/
3.adt:http://developer.android.com/sdk/index.html
4.androidsdk:http://developer.android.com/tools/sdk/tools-notes.html
ANDROIDSDK Source: Http://www.oschina.net/news/31125/final-jellybean-sdk-available-for-download
Second, installation and configuration
1. Installing the JDK
All the way to the next step, this nothing special, skip directly, but remember where you loaded, don't remember 2 seconds. I installed it in the D:\ProgramFiles\Java.
2. Install Eclipse
Unzip eclipse into your hard drive, I unzipped it in the D:\android\eclipse
3. Installing the SDK
If you downloaded a. zip or. tgz Package (Sdkinstaller after installation), unzip it to a secure path, the default will be named Android-sdk-windows, this article is installed in the location of D:\android\ Android-sdk-windows. If you are downloading a Windows Installer (. exe file), running it will detect if the JDK is installed (if it is not installed), then install Sdktools to a secure location (where you can edit).
4. Setting Environment variables
A. New Java_home
JAVA_HOME=D:\PROGRAMFILES\JAVA\JDK1.7.0_40 (JDK installation path)
B. New Java_jre_home
Java_jre_home=%java_home%\jre
C. New Jre_home
Jre_home=d:\programfiles\java\jre7
D. New Android_sdk_home
Android_sdk_home=d:\android\android-sdk-windows
E. New Classpath
Classpath=.; %java_home%\lib;%java_home%\lib\tools.jar;%java_home%\lib\dt.jar;%jre_home%\lib;%jre_home%\lib\rt.jar;%java_ Jre_home%\lib;%java_jre_home%\lib\rt.jar
F.path
Path=;%android_sdk_home%\platform-tools;%android_sdk_home%\tools;%java_home%\bin;%jre_home%\bin;%java_jre_home %\bin
After the configuration, make a check to see if the configuration is successful, Start menu, run->cmd, enter Java, Javac, ADB returns after the error is ok!
Note: Running adb may error,ADB is not an internal command, See if the Android-sdk-windows folder exists under the Platform-tools (Platform-tools is android3.0 after), if not present to the 6th below. Download the update androidsdkplatform-tools when downloading the SDK K out.
5. Install Adtplugin for Eclipse
Android provides an ADT plugin for eclipseide, named Androiddevelopmenttools (ADT), which provides a powerful and complete development environment for developers to create Android apps. It's integrated in eclipse, so you can quickly build new Android projects, create App UIs, and debug your app with Androidsdktools.
(1) Download and install ADT Online (slower)
A. Start eclipse, then select Help >installnewsoftware (install update software) ...
B. Click Add in the top right corner, and in the Add Access dialog box, enter "Adtplugin" as the name
Then enter the link in the edit box below: https://dl-ssl.google.com/android/eclipse/, note: If you encounter a problem that cannot locate the plugin, try switching https to HTTP (HTTPS is the preferred secure port)
Install ADT Locally
Click Archive, browse and select the downloaded zip file
Next Click OK.
C. In the Available Software dialog box, select the Marker box next to Devepopertools and click Next.
D. In the next window, you will see a list of downloaded tools and click Next.
E. Read and accept the license file and click Finish.
Note: If you receive a warning that this software is not safe to install, click OK.
F. After the installation is complete, restart Eclipse.
(2) Configuring the ADT Plugin
After the ADT installation is successful, you will need to modify the ADT parameters in your eclipse to point to androidsdkdirectory.
A. Select Window >preferences (Preferences) ... Open Preferences (preferences)
B. Select Android in the left panel. You may see a dialog box asking if you want to send the usage information to Google. Make your choice, then point proceed.
C.sdklocation appears in the main panel, click Browse ..., and then find the SDK path you downloaded, click OK.
D. Click Apply (APP), done! Then just OK.
6. Download the SDK
A. Click Windows (Window)->androidsdkmanager, note that this process must be networked.
Wait a moment, you can see the following interface, this interface tells you the current version of the SDK available
The installed display is "Installed" and will show notinstalled if not installed. We can shield off the installed, just remove the installed in front of the check.
Select the version of the SDK you want to download, then click Installxpackages on the bottom right and follow the prompts.
B. After downloading, we can try to run the simulator.
Click Windows (Window)->avdmanager
Click New in the upper-right corner of the panel
Once you've set it up, click OK and a simulator is built.
Select the simulator you just built, click on the right of start ... Start the emulator.
Direct Click Launch
Simulator Reference: http://www.cr173.com/html/19430_1.html