Http://limssb.blog.163.com/blog/static/147304372010810101747796/
1. Install JDK and eclipse
? View code bash
1 2
|
Sudo Aptitude InstallSun-java6-jre sun-java6-plugin sun-java6-fonts sun-java6-jdk Sudo Aptitude InstallEclipse-platform eclipse-plugin-CVS eclipse-jdt |
Test after installation: Java-version. Enter a similar result:
? View code bash
1 2 3 4
|
JAVA -version JAVA version 1.6.0 _ 18 openjdk runtime environment ( icedtea6 1.8 ) ( 6b18- 1.8 -0ubuntu1 ) openjdk server VM ( build 14.0 -, mixed mode ) |
2. Install ADT
Run eclipse and click Help> install new software> available software. Click "add .. "button in location enter URL https://dl-ssl.google.com/android/eclipse/ (name item No matter), click OK. in this case, you will see that developer tools appears in the list. Expand "android ddms" and "android development tools" Under the selected directory. Click Next to start installation...
3. Install Android SDK
Download file: android-sdk_r05-linux_86.tgz can be downloaded from here: androidappdocs.appspot.com/sdk/index.html [redapricot walls are required in some regions]
Decompress and release to/home/yourhome/, and the directory I release is:/home/sky/android-sdk-linux_86, and then from
Eclipse> Windows> prefences> Android> SDK location: Specify the directory where the android SDK is located.
Eat first and continue later
--------------------- I am a separation line --------------------
4. Create an andriod Virtual Device (AVD)
Choose "Windows"> "Preferences"> "andriod", click "browser ..", and select the path for installing the android SDK. After setting the path, click OK.
Open the menu "Windows", click "andriod SDK and AVD manager", select "Virtual Devices", and set the name (with any name ), set target to "andriod 2.1-API level 7" and SD card to 1024 in size. Click creat AVD. Select "install packages" to ensure that "SDK platform andriod 2.1" exists.
New-create an AVD:
Then you can start your android "Mobile Phone ".