Ubuntu下android SDK 的安装方法

Android SDK is a development environment for the Android mobile operating system which allows you to write applications for Android devices or gain elevated privileges on android devices with the help of third party software.

This brief tutorial is going to show you how to download and install it in Ubuntu 12.04 if you haven’t already done so. To install it, you first need to install Java JDK package or use the openJDK Java alternative that comes with Ubuntu.

In this tutorial, I’m going to be using the openJDK version of Java. To install Oracle Java version, thenread this post first.

Objectives:

  • Install AndroidSDK in Ubuntu 12.04 (Precise Pangolin)
  • Enjoy!

 

To get started, press Ctrl – Alt – T on your keyboard to open the terminal. When it opens, run the commands below to install OpenJDK.

sudo apt-get install openjdk-6-jre openjdk-6-jdk icedtea6-plugin

 

android_precise

 

Next, download AndroidSDK package by running the commands below. At the time of this writing, the current version wasr20. Or clickthis link to download the .tgz archive file.

wget http://dl.google.com/android/android-sdk_r20-linux.tgz

 

android_precise_1

 

After downloading, run the commands below to extract the downloaded file.

tar -xvzf android-sdk_r20-linux.tgz

 

android_precise_2

 

After extracting the package, run the command below to change into the tools directory.

cd ~/android-sdk-linux/tools

 

android_precise_3

 

Finally, run the commands below to begin the installation.

./android

 

android_precise_4

 

Install Android updates if there are any available.

 

android_precise_5

 

After updating, run the commands below to include AndroidSDK in your path environment.

gedit ~/.bashrc

 

Then add these lines at the very top of the file and save it.

export PATH=${PATH}:~/android-sdk-linux/tools

export PATH=${PATH}:~/android-sdk-linux/platform-tools

 

android_precise_6

 

 

Log out and log back in, then type android on the command line to launch the software.

android avd

 

Build your own phone.

 

android_precise_7

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值