The latest Android Development Environment Based on adt-bundle-windows-x86

Source: Internet
Author: User

A system must be equipped with an android client to quickly build an android development environment. The process is as follows:

1. Download JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Install JDK. My installation directories are c: \ Java \ jdk1.7.0 _ 17 and c: \ Java \ jre7;

2, download Android SDK kit adt-bundle-windows-x86, http://developer.android.com/sdk/index.html about 4 hundred m, which contains eclipse and SDK, eclipse it has integrated ADT. My registered version adt-bundle-windows-x86-20130219; decompress the adt-bundle-windows-x86 package, my path is c: \ Java \ adt-bundle-windows-x86, which contains eclipse and SDK folder, there is an SDK manager;

3. Configure the environment variables. Choose "desktop"> "computer"> "right-click Properties"> "Advanced System settings"> "advanced"> "environment variables"> "Adminstrator" User variables (related to the user name ), create or edit a variable. (if it already exists, append the variable. If it does not exist, create the variable. Note that this variable must be used for append. The number is separated from the previous one)

Variable name: java_home
Variable value: C: \ Java \ jdk1.7.0 _ 17

Variable name: android_sdk
Variable value: C: \ Java

Variable name: Path
Variable value:.; % java_home % \ bin; C: \ Java \ adt-bundle-windows-x86 \ SDK \ tools; C: \ Java \ adt-bundle-windows-x86 \ SDK \ platform-Tools

Variable name: classpath
Variable value:.; % java_home % \ Lib \ tools. jar; % java_home % \ Lib \ DT. jar; % java_home % \ Lib;

(Pay attention to the. Number above)

4. Test Environment Variables

Run-> CMD and enter the Java or javac test command to check whether the test is successful or not;

5. Related SDK updates

Run eclipse under c: \ Java \ adt-bundle-windows-x86 \ eclipse

Update the android 4.2.2 API. Update Other Android 4.2.2 APIs as needed!

6. Configure the android Simulator

Open AVD Manager

Create an android Simulator

Enter relevant parameters as needed

Click Start to run the simulator.

7. Real machine debugging

Set the Android mobile phone to USB debugging mode. Step: menu-> Settings-> ApplicationProgram-> Development, select USB debugging;

Connect to the computer with a USB flash drive and install the mobile phone driver. If no driver is available, install the pea pod to install the driver;

Check whether the mobile phone device has been recognized

8. Create a New helloworld and continue to the next step:

Project name helloandroid1

Final project structure

9. debug and run the simulator:

Right-click the android project and choose run as> Android Application.

10. Real machine debugging

Right-click the android project and choose run as> Android Application.

After selecting a device, run the console and output the following:

Now, the development environment has been fully set up!

 

Related Article

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.