Build an android development environment under Windows 7 and Windows 7 android
1. Download the installation package (Executable File)
1. JDK (JavaDevelopmentKit). download the latest version from the official website.
2. Eclipse (an open-source, Java-based scalable Development Platform)
3. ADT, Android development plug-in.
4. AndroidSDK (this is just a download tool, not a real SDK)
Download link:
1. JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. Eclipse: http://www.eclipse.org/downloads/
2. ADT: http://developer.android.com/sdk/index.html
4. AndroidSDK: http://developer.android.com/sdk/tools-notes.html
Ii. installation and configuration
1. Install JDK
Next step, there is nothing special to skip, but remember where you installed it. Don't remember it for 2 seconds. I installed it in D: \ Java
2. Install Eclipse
Decompress Eclipse to your hard disk and decompress it to D: \ android \ eclipse.
3. Install the SDK
If you download a. ZIP file or. tgz package (after SDKinstaller is installed), decompress it to a safe path, the default name will be android-sdk-windows, the installation location in this article is D: \ android-sdk-windows. If you download the Windows Installer (.exe file), after running it, it will check whether JDK is installed (if not installed, install it), and then install SDKTools to a safe location (you can edit the location ).
4. Set Environment Variables
A. Create JAVA_HOME
JAVA_HOME = D: \ Java \ jdk1.7.0 _ 40 (JDK installation path)
B. Create JAVA_JRE_HOME
JAVA_JRE_HOME = % JAVA_HOME % \ jre
C. Create JRE_HOME
JRE_HOME = D: \ Java \ jre7
D. Create Android_SDK_HOME
Android_SDK_HOME = D: \ android-sdk-windows
E. Create a CLASSPATH
CLASSPATH = .; % JAVA_HOME % \ lib; % JAVA_HOME % \ lib \ tools. jar; % JAVA_HOME % \ lib \ dt. jar; % JRE_HOME % \ lib \ rt. jar; % 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 is complete, check whether the configuration is successful. Choose Start> RUN> cmd and enter java, javac, and adb, and press Enter!
Note: An error may be reported when running adb. If adb is not an internal command, check whether Platform-tools exists in the android-sdk-windows folder (Platform-tools is available only after android3.0 ), if it does not exist in the following 6th. when downloading the SDK, download and update AndroidSDKPlatform-tools.
5. Install ADTPlugin for Eclipse
Android provides EclipseIDE with an ADT plug-in called AndroidDevelopmentTools (ADT), which provides a powerful and complete development environment for developers to create Android applications. It is integrated in Eclipse, so you can quickly create a new Android project, create an application UI, and use AndroidSDKtools to debug your application.
(1) download and install ADT online (slow speed)
A. Start Eclipse and select Help> InstallNewSoftware (install and update the software )...
B. Click Add in the upper right corner. In the Add access dialog box, enter "ADTPlugin" as the name.
Then enter the link in the edit box below: Secure (https is the preferred Security Port)
Install ADT locally
Click Archive to browse and select the compressed file downloaded
Click OK.
C. In the available software dialog box, select the tag 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 cannot be installed, click OK.
F. After the installation is complete, restart Eclipse.
(2) configure the ADT plug-in
After the ADT is successfully installed, You need to modify the ADT parameter in your Eclipse, pointing to AndroidSDKdirectory.
A. Select Window> Preferences... to open Preferences)
B. Select Android on the left panel. You may see a dialog box asking if you want to send the user information to Google. Make your choice and click Proceed.
C. SDKLocation appears in the main panel. Click Browse (Browse)..., find the SDK path you downloaded, and click OK.
D. Click Apply and Done )! Then OK.
6. Download the SDK
A. Click Windows> AndroidSDKManager. Note that this process must be networked.
Wait a moment and you will see the following interface, which tells you the current available SDK version.
"Installed" is displayed. If not Installed, "Notinstalled" is displayed. We can block the Installed, as long as you remove the check box before the Installed.
Select the SDK version you want to download, click Installxpackages in the lower-right corner, and then follow the prompts to do
B. After the download is complete, we can try running the simulator.
Choose Windows> AVDManager.
Click New in the upper-right corner of the Panel.
After setting up, click OK and a simulator will be created.
Select the created simulator and click Start... on the right... Start the simulator.
Click Launch (ctrl + F11)