---
title: "Ubuntu下Android sdk安装注意事项..."
author: "tdttyl.cwm"
date: "2011-01-09T01:14:42Z"
tags: ["Android", "Eclipse", "Linux", "Ubuntu", "虚拟机"]
categories: ["移动开发"]
slug: "ubuntu-android-sdk"
draft: false
lastmod: "2011-01-20T08:46:54Z"
id: 866161
url: "https://no-mor.iteye.com/blog/866161"
---

ubuntu下的SDK不是win下的SDK那样有个模拟键盘和各种按键，它只有一个屏。

别的不说了，能用就好，现在来说说Ubuntu下Eclipse如何配置Android开发环境。

Step1: Install add-ons for eclipse. like windows..

     # help--&gt;install new software....and then you will see this snap above

![](/upload/picture/pic/80300/86aad3f4-7c48-345d-a7d7-70431893716d.png)

\# click "Add...."button,type this url "http://dl-ssl.google.com/android/eclipse/ " into location

![](/upload/picture/pic/80298/49d8be5a-b570-34bb-9384-4a7d765597d4.png)

\# Eclipse will load sources avalible,after a moment,U will probably see this

![](/upload/picture/pic/80296/6fb1b4d1-5abf-3071-8931-bf856d379954.png)

 

\# and then select all,click next button,and then wait util downloading and installing finished.

\# if you see the dialog which recommands you to restart eclipse,Congratulations,you got the android. 

\# can you see the robot which means the android-plugin installed successfully.  
![](/upload/picture/pic/80302/da831ae1-763e-3d8c-a3b4-374cbd33d989.png)

 

Step2: install android SDK onto local disk.

   # google "android-sdk-2.3.tgz" and likes,download sdk files.

   # actually,i downloaded this.

![](/upload/picture/pic/80306/2910dda8-6739-37c2-ae52-f522e5acb2e0.png)

 

   # copy this file into you favorate folder

   # for example,  "/home/caiwm/dev-tools/"

![](/upload/picture/pic/80308/536b3e0d-89fa-3fed-8a33-4560dc748c19.png)

 

  # the first folder named "android-sdk-linux\_86" is generated by operating the shell;

  # open "shell",using "sudo su" to get root.

  # and then type "cd /home/caiwm/dev-tools/" to change to "dev-tools" folder.

  # then type "tar -zxvf android-sdk\_r08-linux\_86.tgz" to 'unzip' the tools file.

  # util now ,you will see the first folder imaged by the above pic.

 

 

Step3: Use the tools to download android pkg.

   # open "android-sdk-linux\_86" folder,you will see this,

![](/upload/picture/pic/80310/2cd92654-88e4-3701-8925-1ffa19657354.png)

   # shell "tools/android" to open "Android SDK and AVD manager" Using Root

![](/upload/picture/pic/80312/41eb5acf-077c-36f0-9b63-d65fe459abec.png)

 

   # click "setting"

![](/upload/picture/pic/80314/83f586ba-32cb-36e8-8ba5-86fc94668e11.png)

 

 

  # click "avalible packages" to select which pkg to install

![](/upload/picture/pic/80316/de23ce4a-7928-37c7-8087-bf02f849b721.png)

   # wait for pkg downloading and installing finished....

   # and then you will can see the pkg installed.

![](/upload/picture/pic/80318/41fe8b52-a946-3e86-986c-b3ac75fbeac0.png)

 

OK,Almost completed....

Step4: Continue to config eclipse.

 

    # window--&gt;preferences....

    # this error due to the SDK Location set Incorrectly.

![](/upload/picture/pic/80320/e379bf6d-6292-32b4-8a03-44c3f7f84f3f.png)

 

   # click "OK", to set the SDK location...click "Apply" you can see the pkg you installed.

![](/upload/picture/pic/80322/04b5d455-5994-3fcd-bf6e-7c64cd12baaa.png)

 

#OVER