Main directory:
I. Brief background
2. Build the android Development Environment (this test uses window as an example)
1. Download and install JDK and download eclipse (omitted)
2. download and install the android SDK
3. Download and install ADT (Version: Helios release)
4. Create Android virual drivers (AVD)
I. Brief background
Speaking of Android, it has been more than three years old. Google launched version 1.0 in version 2007.11.05. After the launch, it set off a boom in smartphone operating systems, it also began Google's ambition to dominate the mobile platform.
The android architecture is completely based on open-source ideas. The underlying architecture includes the Linux operating system, middleware, and core applications. The applications are compiled by powerful Java speech. For the generation and background of Android, you can go to the Internet to check relevant information. Next, you can directly go to the topic-android Development Environment configuration.
2. Build the android Development Environment (this test uses window as an example)
Before configuration, introduce several Eclipse plug-ins:
ADT (Android development tools): Android development tool. With ADT, we can quickly create an android project in eclipse and automatically generate some code;
Ddms: Call the tools in the android SDK to visually add or delete view components in the layout file;
Android is written in Java, so you need to download and configure JDK first. The development tool is eclipse developed by IBM. In general, the configuration sequence of the installation environment is as follows: download and install JDK, download and install Android SDK, download eclipse, download and install ADT.
1. Download and install JDK and download eclipse (omitted). It is officially recommended for AndroidEclipse Galileo
(3.5) version
2. download and install the android SDK
2.1 go to the android homepage http://developer.android.com/index.html, select the sdkpage, and click Download on the right.
The SDK starter package, find the corresponding download version
Directory after downloading and unzipping
2.2 configure Environment Variables
2.3 enter dos and enter Android. If the following window is displayed, the configuration is successful.
2.4 install the SDK version
Open the above window, if it is the first installation, select available packages to select the package that can be installed, and then select install. If the address on the right cannot be opened, select "Settings" in the list on the left and select "fore https: //..." in the settings on the right ://...". After the installation is complete, the directory is much larger than the one just downloaded. In the docs directory, different versions of sdks are in platforms, Android tool files are in the tools directory, and usb_drivers is a USB driver.
3. Download and install ADT in eclipse (Version: Helios release)
3.1 help-install new software, click Add, enter the https://dl-ssl.google.com/android/eclipse,
3.2 click OK, select developer tools, and install it by step. (Supplement: Contact all update sites during... the last item is not selected. It checks whether other plug-ins are updated during installation, otherwise it will be slow)
3.3 After the installation is complete, restart eclipse and select Window> preferences. In the displayed dialog box, an "android" option is added to the left, configure the SDK root directory in the SDK location on the right. The SDK version and Google API version are listed below,
At this time, the basic environment has been set up, but you still need to configure AVD when creating an android project and running it. So let's talk about AVD configuration first.
4. Create Android virual drivers (AVD)
Use Visual Configuration
AVD is a simulator configuration that allows users to better simulate real devices.
4.1 Open Doc, go to the SDK tools directory, and enter the android command to bring up the following window (or go to the SDK root directory and click exe)
4.2 click "new" to bring up the "Create AVD" dialog box (if you cannot see "new" on the right, drag the right border with the mouse ):
4.3 After the creation is successful, the information just created is displayed in virtual drivers:
By now, all the basic configurations have been completed. Now you can create the first Android project!