CentOS安装Android SDK
URL
date
Apr 19, 2022
slug
centos-install-androidsdk
status
Published
tags
android
summary
CentOS安装Android SDK
type
Post
CentOS安装Android SDK
- 下载 Android SDK https://developer.android.google.cn/studio/#downloads
- 安装
sdkmanager
下载linux版本,并解压unzip xxxx.zip
放到/opt/android-sdk
路径下
- 更改
/opt/android-sdk/cmdline-tools/cmdline-tools/bin/sdkmanager
为/opt/android-sdk/cmdline-tools/latest/bin/sdkmanager
- 配置环境变量
vim /etc/profiles
,并重启环境变量source /etc/profiles
- 列出列表
sdkmanager --list
- 安装软件
sdkmanager "platform-tools" "platforms;android-30" "build-tools;30.0.2"
(这三个安装包可以分开安装,这边是偷懒的写法,即一次性安装了三个)