Android SDKThe Eclipse installation and setup notes in the development environment are described in this article, mainly for understanding and learning.Android SDKEnvironment setup, detailsAndroid SDKFor more information, see this article.
1. Install Eclipse
To eclipse, address:
- http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-win32.zip
Download "EclipseIDEforJavaDevelopers (92 MB)" and decompress eclipse-java-galileo-sr1-win32.zip. For example, place it in D: \ eclipse and run "eclipse.exe" in the folder. To first run it, set the directory for storing the program, for example, D: \ eclipse_workplace.
2. Install the Android SDK
Go to the Android homepage and download the package. Decompress the package to a directory, such as D: \ android-sdk-windows. Right-click "my computer", "property" | "advanced" | "environment variable", and add D before the path variable of the system variable: \ android-sdk-windows \ tools; the new SDK also needs to manually download Platform and run sdkmanager.exe under D: \ android-sdk-windows. If it prompts that https is unavailable, you must check "Forcehttps... http:" In settings. Select "AvaliablePackages" on the left, and then select an SDKPlatform, such as "SDKPlatformAndroid2.3.1, API7, revision1" to install the SDK.
3. Create AVDAndroidVirtualDevice)
AVD is a virtual Android phone in a computer. For the New Android SDK version, you must manually add AVD to the Android SDK directory, for example, D: \ android-sdk-windows. run sdkmanager.exe and click "VirtualDevices" on the Left bar. Click "New" on the right to bring up the create dialog box, give this SVD a Name, such as the mobile phone model Hero, set Target to an Android version, SDCard to the virtual svd sd card capacity, and then set the resolution, such as 320*480, then add the special device required for this AVD in Hardware, such as the KeyBoard, and click "CreateAVD" below.
4. Install ADTAndroidDevelopmentTools)
Different Eclipse versions may have different settings. Run Eclipse, "Help" | "InstallNewSoftware", fill in "Android-http://dl-ssl.google.com/Android/eclipse/" in Workwith, then the following will appear "AndroidDDMS" and "AndroidDevelopmentTools", hook up, keep next, accept, complete. Next, wait for it to automatically download and install. This process takes a long time. If there is a dialog box about whether to continue the installation, click Continue. After the installation is complete, restart Eclipse.
5. Set the Android SDK location
Run Eclipse. In the menu bar "Window" | "Preferences", click "Android" on the Left bar, and fill in step 2nd in the SDK Location on the right.Android SDKLocation, such as D: \ android-sdk-windows. Click Apply and select a Platform.
6. Set ADV in Eclipse
Run Eclipse. On the menu bar "Run" | "RunConfigurations", select AndroidApplication, select a configuration, select "Target" on the right, and then select an AVD.
7. HelloWorld
Run Eclipse. On the menu bar, select "File" | "New" | "Project", and select "Android" | "AndroidProject ". if Eclipse Android does not list this project after the project is created, this is because it is not set to display. In the menu bar "Window" | "ShowView", select PackageExplorer.
Right-click the created Project TestDemo in PackageExplorer on the left, select the last "Properties", select "Run/DebugSettings", and add "AndroidJUnitTest" in "New" on the right ", in the pop-up settings, select the tag "Target" and select another AVD.
Finally, right-click the project TestDemo in Package Explorer on the left and select "RunAs" | "AndroidApplication ". You can see that a virtual Android phone is successfully started.
Summary:Android SDKThe Eclipse installation and setup notes for the development environment are described.Android SDKContent learning is helpful to you!