Android笔记一 搭建环境
1.Installing the Android SDK
Download the very latest SDK , see http://developer.android.com/sdk/index.html .Unpack the SDK starter package to a location and then add the location (‘D:\android-sdk_r06-windows\android-sdk-windows\tools’) to PATH development environment.
2. Installing the ADT(Android Development Tools) Plugin for Eclipse
Start Eclipse, then select Help->Software Updates->Find and Install->Search for new features to install->New Remote Site . Enter a name in the ‘Name’ field and enter this ‘URL’:
https://dl-ssl.google.com/android/eclipse/ . Chick OK .
3. Set up SDK location
In Eclipse, choose Windows->Preferences->Android , SDK Location is set to
‘D:\android-sdk_r06-windows\android-sdk-windows’ .
4. Create an AVD(Android Virtual Device)
In Eclipse , choose Window->Android SDK and AVD Manager->Available Packages , to add one or more Android Platforms( for example, Android 2.2) to our SDK。 Next Steps, choose Window->Android SDK and AVD Manager-> Vitual Devices , Click ‘New ’ button and then input the information below:
Click 'Create AVD' 。 If we aren’t sure whether it is successful, we can execute ‘android list target ’ in the <sdk>/tools/ folder.
5. Boot up the emulator
In tools folder, execute ‘emulator -avd android22 ’
After a moment, the application will appear: