Build an android Development Environment on myeclipse 8.6 (eclipse) on Windows

Source: Internet
Author: User

1. Basic Environment preparation:

Install JDK 8.6 or later and eclipse3.3 or later (myeclipse is also supported). I have installed JDK and myeclipse;

Set the environment variable java_home as the JDK installation directory and add % java_home %/bin to the system PATH variable.

Jdk1.6

My eclipse 8.6


 

2. Download the android SDK

Address: http://androidappdocs-staging.appspot.com/sdk/index.html

After the download is successful:

Android SDK File

Decompress the package to a directory:

 

Decompress the file

Extract directory

Double-click SDK setup.exe to install the SDK. After the SDK is installed, enter the folder as shown in:

Install SDK

 

3. Configure the SDK environment variables:

Add the tools directory under the SDK to the path:

Add the tools directory under the SDK to the path

Environment variable:

Environment Variable

After the SDK is complete, the configuration is complete.

After the command is added, run the android -- help command in the command line. If the android HELP command is displayed, the configuration is complete.

 

4. Install the ADT plug-in for myeclipse

Choose eclipse help> myeclipse configuration center.

Open the Help menu of eclipse

Click the software tab.

Software labels

Add site after browser software

 Browser software

In the dialog box, enter: (Name: your own URL: https

:

// Dl-ssl.google.com/android/eclipse/

)

Enter a name in the dialog box and click OK.

Then, the following

 Click Add to profile

Select the target, right-click Add to profile, and the software updates available on the right will respond,

Software Updates
Available

Click Apply 2 changes below to start installation.

Click Apply 2 Changes

Start Installation

Click accept the following permission to continue.

Click to accept

Click Update to start installation. The process may be a little slow and wait patiently for him to complete.

Update to start Installation

 

5. Configure myeclipse

Click WINDOW> preferences.

Click window
-> Preferences

In the android option, enter the SDK location and click apply. The following content appears.

Click Apply.

 

6. AVD Management

Click WINDOW> Android SDK and AVD manager.

 

Android SDK and AVD
Manager

Then select available package

Because compatibility tests are required, it is best to install more versions if conditions permit.

Then, click Install selected to start installation. This is a long process and may be very long. Haha

After installation. We started to create a virtual machine.

Click new

 

Create

 

After the creation is successful, you can start to try

Start, click Start

 

Start Simulator

 

Click Start, and then click launch to start the simulator.

Yes.Start the simulator with the command line.

Run cmd to D:/Program/Android-SDK-Windows/tools, and enter the command emulator-AVD wei1.6. The name you just mentioned is used here. Wait about 2 minutes to see the simulator! For example.

 

7. Create a hello World Program

Create an android Project

Click Next

 

Click Finish

 

Modify the code in the helloworld class:

{
/** Called after the activity is created for the first time */
@ Override
Public void oncreate (bundle savedinstancestate ){
Super. oncreate (savedinstancestate );
Textview TV = new textview (this );
TV. settext ("Hello world, helloworld! ");
Setcontentview (TV );
}
}

When importing a package, you can use the shortcut key Ctrl + Shift + O.

You can use the shortcut key Ctrl +/when commenting /.

 

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

 

Right-click

You can see the effect:

 

Set up successfully

Now, you can start to study this Hello Word program. Good luck. Thank you!

 

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.