Build an android Development Environment (Full Version)

Source: Internet
Author: User

 
Build an android Development Environment

1. Preparation
The Android system is mainly developed based on the Java language. Before you start, you must prepare the following operating environment and programs:
(1) Java JDK ::
P: // www.oracle.com/technetwork/java/javase/downloads/index.h TMl
Http://java.sun.com/javase/downloads/index.jsp

You only need to download JDK. You do not need to download JRE. After the JDK is downloaded, click Install. You do not need to set environment variables to use it.
(2) Eclipse ::
Http://www.eclipse.org/downloads
You can select the Eclipse IDE for javaee Dev elopers version. Download and decompress the package.
(3) download the E Clipse plugin ADT:
Http://dl.google.com/android/ADT-0.9.9.zip

(4) download the android SDK ::
Http://dl.google.com/android-sdk_r07-windows.zip

Decompress the downloaded package.
2 ADT Installation
The online course describes how to install ADT online. Here we will mainly explain how to install ADT locally.
(1) After JDK 6 is installed, start the decompressed eclipse.
(2) On the menu bar, choose help --> install new software. The following interface is displayed:
 
Figure 2.1 install new software
 
(3) Click the Add button. The following interface is displayed. In the Name field of the interface, enter Android. In the loction field, click archive and select "quasi ".
Open the prepared ADT package. 2.2
 
Beijing abtek North daqingbird Information Technology Co., Ltd.
 
Figure 2.2 select ADT compressed package
(4) Click OK. On the 2.3 page, select Developer Tools.
 
Figure 2.3 check install page
 
(5) Click Next. The 2.4 page is displayed.
 
Beijing abtek North daqingbird Information Technology Co., Ltd.
 
 
Figure 2.4 review install page
(6) Click Next. The 2.5 page appears. Select I accept the terms of the license agreements and click Finish,
Click OK if the warning box is displayed during installation.
 
Figure 2.5 accept install page
(8) after the installation is complete, the 2.6 page appears. You must restart eclipse. Click Yes.
 
Beijing abtek North daqingbird Information Technology Co., Ltd.
 
Figure 2.6 restart eclipse
(9) after eclipse is restarted, if the robot logo appears in eclipse, it indicates that the ADT is successfully installed.
Figure 1.7 ADT installed successfully
 
3. Install the SDK
(1) Click the menu window --> preferences --> android to display the 3.1 page.
 
Figure 3.1 SDK installation page
(2) Click Browse and select the decompressed SDK. Be sure to select the root directory containing multiple program folders, 3.2
 
Beijing abtek North daqingbird Information Technology Co., Ltd.
 
 
Figure 3.2 SDK program selection page
(5) Click OK and then click OK to complete SDK installation.
4. Create a virtual phone (simulator)
(1) Click the robot icon in the menu or the menu window --> Android SDK and AVD manager. The following page is displayed:
 
Figure 4.1 create a simulator
(2) On the page shown in Figure 4.1, if you click the second installed packages item on the left and then click the update all button, you can
 
Beijing abtek North daqingbird Information Technology Co., Ltd.
Select to download the API of different SDK versions. Click new on the right to create a mobile phone simulator on the 4.2 page. Note: Yes.
Create multiple avds. The name text box in Figure 4.2 can be written at will, but the names of multiple avds should be different. Target
Select the desired SDK version from the drop-down list. Size: the size of the SD card can be customized, and built-in can select the simulator screen logo
Accurate. You can define the simulator resolution at resolution.
 
Figure 4.2 create an AVD Interface
(3) Click Create AVD to display the 4.3 page.
 
Beijing abtek North daqingbird Information Technology Co., Ltd.
 
 
Figure 4.3 start a simulator
(4) Select the SDK to be started, click the start button on the right, and then click lunch to start the simulator in the option box that appears.
5. Create the first Android Project
(1) In the menu bar, choose File> New> Other> Android project, 5.1
 
Figure 5.1 create an android Project
 
Beijing abtek North daqingbird Information Technology Co., Ltd.
(2) Click Next. The page 5.2 is displayed. Enter the project name in proje ct name, and select the expected Bui ld target.
SDK version. Application name indicates the name of the project to be displayed on the mobile phone interface. Package name is the package name, create
Activity is to select whether the project has a user interface. If an activity is created, name the main interface. Min SDK vision is
Select the minimum compatible SDK version of the software. For more information, see API level.
Figure 5.2 create a new Android Project
 
 
(3) After clicking finish, eclipse will automatically create an android project for us. If there is a Red Cross in the project, you can
Enter a space in the activity or press enter to save, then the Red Cross disappears. Right-click the project name and select
Select --> Run as-> Android Application to deploy the project to the simulator. The running result is 5.3.
Figure 5.3 deploy the project to the simulator
 
6. Summary
Through the above study, we must have a detailed and in-depth understanding of the establishment of the android development environment. The correct learning method should be
First, you can read and practice this document, and then do it yourself.
Any development language requires constant hands-on exercises, and Android is no exception. In the future, we will only learn theoretical knowledge.
It is not enough. Be sure to work diligently, move more brains, hurry up and improve yourself, and lay a solid foundation for future work.
From now on, we will enter the wonderful Android world and enjoy our learning!
 
Beijing abtek North daqingbird Information Technology Co., Ltd.
 

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.