Hakuci Tag: Android, video tutorial
Android SDK 2.2 Development Environment
Google held the second day of the Google I/O 2010 Conference at the Moscone township International Expo Center in San Francisco (October 11, May 20) the latest version of Android 2.2. The next step is to download the SDK (developer kit) installation package on the network. Although the SDK package alone cannot allow us to experience applications such as flash10.1, according to the official introduction, the new version of the system greatly improves the performance. In addition to supporting flash 10.1, the system interface and functions are also optimized in detail.
Android 2.2 is very much worth looking forward to. The following are detailed steps for configuring the android sdk2.2 + Eclipse open environment based on my practical experience. These steps can also be completed by outsiders.
System environment requirements can refer to the http://androidappdocs.appspot.com/sdk/requirements.html
Download video tutorials(Thunder download)
If the video is placed on the online storage and has pop-up advertisements, this will cause inconvenience. Please forgive me.
1. download the software package
(1)JDK
Jdk1.5 + is required. We recommend that you use jdk6.x.
Download URLs http://java.sun.com/javase/downloads/index.jsp
After the download, install it step by step! Set the system variable java_home to your installation directory and add it to the system variable path; % java_home % \ bin;
Figure 1.1 java_home settings
Figure 1.2 path system variable configuration
In this article, we select jdk1.6.0 _ 19.
(2)IDE
Eclipse 3.4 (Ganymede) or 3.5 (Galileo)
Download URL http://www.eclipse.org/downloads it is recommended to download one of the following versions
Eclipse IDE for Java EE developers
Eclipse IDE for Java developers
Eclipse for RCP/plug-in developers
Eclipse classic
After the download is complete, decompress the package!
This article selects the latest
Eclipse-reporting-galileo-SR2-win32 (base on Eclipse 3.5 Sr2)
(3)Android SDK
To be precise, the download is not an SDK but an SDK download Installer. Because the download is not an SDK, you need to connect to the official website to download the required SDK.
Download http://androidappdocs.appspot.com/sdk/index.html and select the download path of the Windows platform. The latest version is android-sdk_r06-windows.zip, which is about 22 MB. Decompress the package.
2. Set the development environment
(1) Download and configureSDK
There are two configuration methods,
First, use the SDKThe download tool automatically downloads and configures the file. Suitable for scenarios where the network is good and the download speed is fast.
Second, download the SDK using toolsFile. Suitable for scenarios where the network is not good and the download speed is slow.
The first method is described below.
Method 1-- Automatic
1) run the android SDK to download the installer SDK setup.exe
Figure 2.1 SDK download
2) configure and download the SDK
Select available packages, select the SDK package you want to install, and then click Install selected.
Figure 2.2 download SDK
In fact, when SDK setup is started, the update package is automatically checked and the following interface is displayed. Select the installation package as required and install it. Its functions are the same as above (Figure 2.2)
Figure 2.3 update (download) SDK
The installation speed depends on your network speed and the bandwidth of Google Android. Download all the data for more than 1 GB.
3) Tips: if your computer does not support HTTPS connection, select setting to force https ://... sources to be fetched by using http ://....
Figure 2.4 https-> HTTP OPTIONS
List:
Android 2.2, API 8, revision 2
SDK platform Android 2.1, API 7, revision 2
SDK platform Android 2.0.1, API 6, Revision 1 (obsolete)
SDK platform Android 2.0, API 5, Revision 1 (obsolete)
SDK platform Android 1.6, API 4, Revision 3
SDK platform Android 1.5, API 3, Revision 4
SDK platform Android 1.1, API 2, Revision 1 (obsolete)
Samples for sdk api 8, Revision 1
Samples for sdk api 7, Revision 1
Google APIS by Google Inc., Android API 8, revision 2
Google APIS by Google Inc., Android API 7, Revision 1
Google APIS by Google Inc., Android API 6, Revision 1 (obsolete)
Google APIS by Google Inc., Android API 5, Revision 1 (obsolete)
Google APIS by Google Inc., Android API 4, revision 2
Google APIS by Google Inc., Android API 3, Revision 3
USB driver package, Revision 3
Market licensing package, Revision 1
Documentation for Android SDK, API 8, Revision 1
Method 2-Manual method
1) download from the following URL. Of course, you can also download from other unofficial websites (search via Baidu or Google. These files are all updated files based on the SDK Downloader.
Http://dl-ssl.google.com/android/repository/repository.xmlthe latest
You can download these files through thunder and express.
Http://dl-ssl.google.com/android/repository/android-1.5_r04-windows.zip
Http://dl-ssl.google.com/android/repository/android-1.6_r03-windows.zip
Http://dl-ssl.google.com/android/repository/android-2.0.1_r01-windows.zip
Http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip
Http://dl-ssl.google.com/android/repository/android-2.1_r02-windows.zip
Http://dl-ssl.google.com/android/repository/android-2.2_r01-windows.zip
Http://dl-ssl.google.com/android/repository/docs-2.2_r01-linux.zip
Http://dl-ssl.google.com/android/repository/google_apis-3-r03.zip
Http://dl-ssl.google.com/android/repository/google_apis-4_r02.zip
Http://dl-ssl.google.com/android/repository/google_apis-5_r01.zip
Http://dl-ssl.google.com/android/repository/google_apis-6_r01.zip
Http://dl-ssl.google.com/android/repository/google_apis-7_r01.zip
Http://dl-ssl.google.com/android/repository/google_apis-8_r01.zip
Http://dl-ssl.google.com/android/repository/jboss-5.1.0.GA.zip
Http://dl-ssl.google.com/android/repository/samples-2.1_r01-linux.zip
Http://dl-ssl.google.com/android/repository/samples-2.2_r01-linux.zip
Http://dl-ssl.google.com/android/repository/tools_r06-windows.zip
Http://dl-ssl.google.com/android/repository/usb_driver_r03-windows.zip
2) After downloading, decompress the following ing relationships to decompress the file.
The front is the file you downloaded, and the arrow is followed by the directory in the directory where the SDK download tool you decompressed is located.
Android-1.5_r04-windows.zip ==> platforms \ Android-3
Android-1.6_r03-windows.zip ==> platforms \ Android-4
Android-2.0_r01-windows.zipp ==> platforms \ Android-5
Android-2.0.1_r01-windows.zip ==> platforms \ Android-6
Android-2.1_r02-windows.zipp ==> platforms \ Android-7
Android-2.2_r01-windows.zip ==> platforms \ Android-8
Google_apis-3-r03.zip ==> add-ons \ addon_google_apis_google_inc_3
Google_apis-4_r02.zip ==> add-ons \ addon_google_apis_google_inc_4
Google_apis-5_r01.zip ==> add-ons \ addon_google_apis_google_inc_5
Google_apis-6_r01.zip ==> add-ons \ addon_google_apis_google_inc_6
Google_apis-7_r01.zip ==> add-ons \ addon_google_apis_google_inc_7
Google_apis-8_r01.zip ==> add-ons \ addon_google_apis_google_inc_8
Docs-2.2_r01-linux.zip ==> Doc
Samples-2.1_r01-linux.zip ==> samples \ Android-7
Samples-2.2_r01-linux.zip ==> samples \ Android-7
Tools_r06-windows.zip ==> tools
Usb_driver_r03-windows.zip ==> usb_driver
Figure 2.5 manual Installation
3) after decompression, start the SDK download tool and check whether the installation is successful!
Select installed packages to check whether the installation is successful
Figure 2.6 check whether the installation is successful
More comprehensive offline package can go to the http://hakuci.qjwm.com/development tools-> Android-> androidsdk-all download
(2) Download and configureADP
ADT: Android development tools, Android development plug-in of eclipse
1) unzip the eclipse.exe file to start eclipse.
2) Select the eclipse menu help-> install new software... -> Select available software on the tab, click "add..." on the right, and enter the https://dl-ssl.google.com/android/eclipse/
If HTTPS is not supported, you can enter a http://dl-ssl.google.com/android/eclipse/
Figure 2.7 ADT download
Select All installation packages, and then click Next to install the Wizard to download and install them.
Figure 2.8 ADT Installation
After installation, the system prompts you to restart eclipse.
Manual Installation
You can also use the download method to install
Download the website http://dl.google.com/android/ADT-0.9.7.zip (for the latest website, see
Http://androidappdocs.appspot.com/sdk/eclipse-adt.html)
Click archive in Figure 2.7 and select adt-0.9.7.zip. We will not detail it here.
Figure 2.9 manual update
3) set the SDK path
After eclipse is restarted, select Window> preferences ..., in the open property box, select Android, enter the directory where your android SDK is located in the SDK location, and then press the Apply button to view the SDK package you have installed, as shown in figure
Figure 2.10 set SDK route
4) set the android SDK and AVD Manager
AVD: Android Virtual Device
Select window -- Android SDK and AVD manager. In the pop-up Android SDK and AVD Manager dialog box, select Virtual Devices and click New to create a virtual device.
Figure 2.11 Android SDK and AVD Manager
SD card (memory card) Size |
|
Figure 2.12 create an AVD
Now the development environment configuration is complete.
Iii. TestAndroidProgramRunning in the simulator
Test with the most classic example Hello World
1)Create a project
Open eclipse and select File> New> Project> Android project.
Fig 3.1 Project Creation 1
Figure 3.2 Project Creation 2
2)Troubleshooting of exceptions
An exception occurs after creation. Some major jar packages cannot be found (Figure 3.3 ),
Solution:
Project> properties. In the order and export options, select Android 2.2 and press OK!
Figure 3.3 Creation Error
Figure 3.4 settings
3)CodeEdit
Figure 3.5 code editing
4) Run and Test
Run, right-click the project folder and choose run as> adroid application to run,
Note: The running button in the green menu may not find the adroid application and you do not know if it is an ADT bug.
Figure 3.6 run
5) The following operations may be slow.
Android is a new theme. Please contact us!
Download video tutorials(Thunder download)
Other Android video tutorials can go to http://hakuci.qjwm.com/hakuci video tutorial Android download
If the video is placed on the online storage and has pop-up advertisements, this will cause inconvenience. Please forgive me.
Solemnly declare that the author information must be retained for reprinting
Hakuci Tag: Android, video tutorial