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

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

    © Wang Jiahao 2021 - 2024