yum方式安装android_centos7中安装Android SDK的方法步骤

本文详细介绍了如何在CentOS7上使用yum方式安装Android SDK,包括下载SDK Tools、配置命令、查看已安装信息及安装所需package的完整过程。
摘要由CSDN通过智能技术生成

本文介绍了centos7中安装Android SDK的方法步骤,分享给大家

0x01 下载sdktools

cd /opt

mkdir androidSdk

wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip

unzip sdk-tools-linux-3859397.zip

0x02 配置命令

打开 /opt/profile 添加sdk命令如下:

...

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

export PATH=$PATH:/opt/androidSdk/tools/bin

...

然后执行 source profile 使之生效

0x03 查看已安装信息

sdkmanager --list

Installed packages:

Path | Version | Description | Location

------- | ------- | ------- | -------

tools | 26.0.1 | Android SDK Tools 26.0.1 | tools/

Available Packages:

Path | Version | Description

------- | ------- | -------

add-ons;addon-g..._apis-google-15 | 3 | Google APIs

add-ons;addon-g..._apis-google-16 | 4 | Google APIs

add-ons;addon-g..._apis-google-17 | 4 | Google APIs

add-ons;addon-g..._apis-google-18 | 4 | Google APIs

add-ons;addon-g..._apis-google-19 | 20 | Google APIs

add-ons;addon-g..._apis-google-21 | 1 | Google APIs

add-ons;addon-g..._apis-google-22 | 1 | Google APIs

add-ons;addon-g..._apis-google-23 | 1 | Google APIs

add-ons;addon-g..._apis-google-24 | 1 | Google APIs

add-ons;addon-g...e_gdk-google-19 | 11 | Glass Development Kit Preview

build-tools;19.1.0 | 19.1.0 | Android SDK Build-Tools 19.1

build-tools;20.0.0 | 20.0.0 | Android SDK Build-Tools 20

build-tools;21.1.2 | 21.1.2 | Android SDK Build-Tools 21.1.2

build-tools;22.0.1 | 22.0.1 | Android SDK Build-Tools 22.0.1

build-tools;23.0.1 | 23.0.1 | Android SDK Build-Tools 23.0.1

build-tools;23.0.2 | 23.0.2 | Android SDK Build-Tools 23.0.2

build-tools;23.0.3 | 23.0.3 | Android SDK Build-Tools 23.0.3

build-tools;24.0.0 | 24.0.0 | Android SDK Build-Tools 24

build-tools;24.0.1 | 24.0.1 | Android SDK Build-Tools 24.0.1

build-tools;24.0.2 | 24.0.2 | Android SDK Build-Tools 24.0.2

build-tools;24.0.3 | 24.0.3 | Android SDK Build-Tools 24.0.3

build-tools;25.0.0 | 25.0.0 | Android SDK Build-Tools 25

build-tools;25.0.1 | 25.0.1 | Android SDK Build-Tools 25.0.1

build-tools;25.0.2 | 25.0.2 | Android SDK Build-Tools 25.0.2

build-tools;25.0.3 | 25.0.3 | Android SDK Build-Tools 25.0.3

build-tools;26.0.0 | 26.0.0 | Android SDK Build-Tools 26

cmake;3.6.4111459 | 3.6.4111459 | CMake 3.6.4111459

docs | 1 | Documentation for Android SDK

emulator | 26.1.2 | Android Emulator

extras;android;gapid;1 | 1.0.3 | GPU Debugging tools

extras;android;gapid;3 | 3.1.0 | GPU Debugging tools

extras;android;m2repository | 47.0.0 | Android Support Repository

extras;google;auto | 1.1 | Android Auto Desktop Head Unit...

extras;google;g...e_play_services | 42 | Google Play services

extras;google;instantapps | 1.0.0 | Instant Apps Development SDK

extras;google;m2repository | 55 | Google Repository

extras;google;m...t_apk_expansion | 1 | Google Play APK

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值