Android Study Notes 1 --------- Development Environment setup-xp

Source: Internet
Author: User

Step 1: download and install JDK (Java SE Development Kit)
Because both Android SDK and Eclipse are written in Java, you need to install JDK. JDK can be downloaded as follows:
Visit the website http://www.oracle.com/technetwork/java/javase/downloads/index.html, click JDK in the page:
 
Next according to the platform select jdk download link, Windows7 32bit version is click jdk-6u25-windows-i586.exe download JDK installation program, after the download is complete, double-click the installation program, according to the wizard prompts to complete the installation.
 
After the installation is complete, add the JDK command to the Path environment variable and add the Path of the JDK command to the Path environment variable using the following method:
1) Right-click "my computer"-> properties, and then select the "advanced system settings" option in the left navigation bar.
2) Click the "environment variable" option in the lower right corner.
3) in "system variables", find the Path environment variable, double-click it, and append the following content before the variable value:
"C: \ Program Files \ Java \ jdk1.6.0 _ 25 \;", note that there is a semicolon
4) Click "OK" to complete environment variable settings.
Step 2: download and install the Android SDK
First, go to http://developer.android.com/sdk/to obtain the latest Android SDK package for Windows. After the download is complete, an installation file is obtained. The download page is shown in. Please download the file in the red box:
Double-click to download the installation Program installer_r11-windows.exe, according to the installation wizard prompts to install, the default will be installed in C: \ Program Files \ Android \ android-sdk directory, after installation is complete, SDK Manager is automatically started by default.
If the JDK cannot be found during the installation process, you only need to go Back and click Next again. When SDK Manager is started, a Choose
In the Packages to Install dialog box, check whether all available Packages are installed. Because I only want to Install Packages related to Android 2.3, click "Cancel" to close the dialog box and return to the Android SDK.
And AVD Manager. Select the relevant installation package. Of course, you can also choose to install all. ,
Step 3: Install the Eclipse integrated development environment
The recommended IDE for Android is Eclipse. Visit the following address to download Eclipse:
Http://www.eclipse.org/downloads /:

On the download page, select Windows as a reference, and then download the Eclipse IDE for Java Developers version (download the 32bit or 64bit version depends on the actual situation of your Windows7 version ).
Download will get a compressed package named eclipse-java-helios-SR2-win32.zip (with the eclipse version update, the file name may be different), Eclipse does not need to install, directly decompress it can be used, recommended in
D: \ decompress the compressed package under the root directory, decompress the package, enter the eclipse directory, and double-click eclipse.exe to start eclipse. At startup, you will first be asked to set the Workspace path, which is used to save all the programs you have created
You can modify the source code on your own.
Step 4: Install the Android Development Tools plug-in
Visit http://developer.android.com/sdk/eclipse-adt.html#installingand find the ADT download link on the webpage to download it,
Download the file adt-10.0.1.zip and decompress it to obtain the following file:
Exit Eclipse, copy these files, and overwrite the Eclipse directory to complete installation.
Step 5: Configure Eclipse
Start Eclipse, click the Window menu on the Eclipse main interface, select Preferences, in the Preferences dialog box, select "Android" on the left, click the Brower button on the right side of the SDK Location, and select
The SDK installation path. The default path is C: \ Program Files \ Android \ android-sdk, as shown in:
Click OK to complete the configuration.
Step 6: Create an Android Simulator
Find Android SDK Tools in the Start menu, and click SDK Manager to start SDK Manager. The "Android SDK and AVD Manager" dialog box is displayed, and click "New... "button," Create
New Android Virtual Device (AVD) dialog box, enter Android-AVD in Name, select Android 2.3.3-API Level 10 in Target, and enter 512 in SD Card. Other options are default, click "Create"
AVD button, as shown in:
After the simulator is created, the simulator is listed in the List, as shown in:
You can select it from the list, and then click Start. In the pop-up Launch Option dialog box, click Launch to Start the simulator. The effect is as follows:
Then we can write our android program.


From running snails

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.