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: