Hello, third edition of Android (I)

Source: Internet
Author: User

Chapter 1
Start

1.1
Environment Construction

Android SDK
Can work in
Windows
,
Linux
,
Mac OS
And other operating systems, their applications can be deployed in any
Android
Before development, install
JDK
,
IDE
,
Android SDK
.

Java
: Installation
JDK
At least
5.0
And later versions. Its Installation Steps and environment variable settings, and other
Java
The requirements for program development are the same.

Eclipse
: You can download and install the latest version from the official website.

Android SDK
: Download from the official website or from other websites. The current version is
2.2
The download is not complete.
SDK
. Because I only
Windows
Development environment, so the download
Android-SDK-Windows
, Decompress the package, and run
Setup.exe
The interface is as follows:


Run
Setup.exe
Will download updates from the official website
XML
File. If an error is displayed, click
Settings
, As shown in:


If
Force https
If this option is selected, the system will immediately download the relevant information from the official website. If there is always an error, check your network or try it several times, this is the case. After successful retrieval, the following page is displayed:


Click the tree list on the right to view the relevant
SDK
And other information, select according to your needs, and then click
Install selected
Click to install.

I installed it.
SDK
And Related packages:

 

1.2 eclipse
Configuration

Eclipse
After installation, you need to update it from the Internet
Android
Plug-ins,
Help-
À

Install
New software
In the pop-up window:


Name
:
Android
Plugin

Location
:
Https://dl-ssl.google.com/android/eclipse/

Click
OK
And then update it. After the update, you need to set
Android SDK
Directory. For example:


In
SDK location
Select
SDK
Directory, and make sure that the latest
SDK
. Point to this directory.

By now, the entire development environment is complete.

1.3
Configuration
Virtual Device

Or run
Android SDK
Directory
Setup.exe
The pop-up window is as follows:


Select
Virtual Devices
, Click
New
Button to add, such:


After entering the information, click
Create AVD
You can.


Select the created
AVD
And then click
Start
To run the simulator. For example:


 

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.