Ubuntu安卓逆向系列——安装android sdk(2)

1.下载Android SDK
    点击下载链接:下载链接                 我下载的是:android-sdk_r24.4.1-linux.tgz

    解压Android SDK
    将android-sdk_r24.4.1-linux.tgz文件复制到Linux 文件系统中的某个目录,我的是目录是/usr/local/
    执行命令解压:

tar -zvxf android-sdk_r24.4.1-linux.tgz


2.配置环境变量
在文件/etc/profile末端添加如下两行:

export ANDROID_HOME=/usr/local/android-sdk-linux
export PATH=$ANDROID_HOME/tools:$PATH


android-sdk-linux是你解压后的文件名,tools一定要这样写,是里面文件夹的名称

执行命令文件立马生效

source /etc/profile


3.安装所有包

android update sdk --no-ui


或者查看序列号

android list sdk --all


结果

1- Android SDK Tools, revision 24.1.2
2- Android SDK Platform-tools, revision 22
3- Android SDK Build-tools, revision 22.0.1
4- Android SDK Build-tools, revision 22 (Obsolete)
5- Android SDK Build-tools, revision 21.1.2
6- Android SDK Build-tools, revision 21.1.1 (Obsolete)
7- Android SDK Build-tools, revision 21.1 (Obsolete)
8- Android SDK Build-tools, revision 21.0.2 (Obsolete)
9- Android SDK Build-tools, revision 21.0.1 (Obsolete)
10- Android SDK Build-tools, revision 21 (Obsolete)
11- Android SDK Build-tools, revision 20
12- Android SDK Build-tools, revision 19.1
13- Android SDK Build-tools, revision 19.0.3 (Obsolete)
14- Android SDK Build-tools, revision 19.0.2 (Obsolete)
15- Android SDK Build-tools, revision 19.0.1 (Obsolete)
16- Android SDK Build-tools, revision 19 (Obsolete)
17- Android SDK Build-tools, revision 18.1.1 (Obsolete)
18- Android SDK Build-tools, revision 18.1 (Obsolete)
19- Android SDK Build-tools, revision 18.0.1 (Obsolete)
20- Android SDK Build-tools, revision 17 (Obsolete)
21- Documentation for Android SDK, API 22, revision 1
22- SDK Platform Android 5.1.1, API 22, revision 2
23- SDK Platform Android 5.0.1, API 21, revision 2
24- SDK Platform Android 4.4W.2, API 20, revision 2
25- SDK Platform Android 4.4.2, API 19, revision 4
26- SDK Platform Android 4.3.1, API 18, revision 3
27- SDK Platform Android 4.2.2, API 17, revision 3

 

按序列号安装

android update sdk -u --all --filter 1,2,3,5,11,12,22,23,24,25,26,27,28,29,88,89

 

posted @ 2019-09-15 16:22  dmeng2009  阅读(498)  评论(0编辑  收藏  举报