ITeye博客

Ubuntu下Android sdk安装注意事项...

tdttyl.cwm · 2011-01-09 01:14 · 移动开发 · Eclipse · Ubuntu · Android · Linux · 虚拟机 · Markdown

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

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

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

     # help-->install new software....and then you will see this snap above

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

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

 

# 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.

 

Step2: install android SDK onto local disk.

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

   # actually,i downloaded this.

 

   # copy this file into you favorate folder

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

 

  # 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,

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

 

   # click "setting"

 

 

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

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

   # and then you will can see the pkg installed.

 

OK,Almost completed....

Step4: Continue to config eclipse.

 

    # window-->preferences....

    # this error due to the SDK Location set Incorrectly.

 

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

 

#OVER

评论(3)

  1. #3 楼 · tdttyl.cwm · 2011-01-14 10:17

    fanfq writes:

    我安装好后,怎么tools/下没有adb啊,而且android虚拟机也创建不了。

    要先安装sdk的

  2. #2 楼 · tdttyl.cwm · 2011-01-14 10:16

    fanfq writes:

    我安装好后,怎么tools/下没有adb啊,而且android虚拟机也创建不了。

    执行解压目录下 tools/android文件

  3. #1 楼 · fanfq · 2011-01-14 09:12

    我安装好后,怎么tools/下没有adb啊,而且android虚拟机也创建不了。

评论功能维护中,当前仅展示历史评论。