跳至主要內容

Ubuntu命令行安装Android SDK

PaperDragon...小于 1 分钟

Ubuntu命令行安装Android SDK

安装步骤

  1. 新建 android-sdk 作为工作目录。

  2. 下载命令行工具 sdkmanager:

    wget https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip

  3. 解压:

    unzip commandlinetools-linux-7302050_latest.zip

    进入目录如下所示

  4. image-20230620102354072
    image-20230620102354072
  5. 进入 cmdline-tools 目录,执行 ./bin/sdkmanager 报错 “Error: Could not deter mine SDK root.”

  6. 在当前目录新建 latest 目录,并将原 cmdline-tools 下的所有文件移至 latest下,操作如下:

image-20230620102343996
image-20230620102343996
  1. 下载完成后,执行 ls .. 查看上级目录中的文件:

    image-20230620102425568
    image-20230620102425568

引用

  1. cmdline-tools : could not determine SDK root open in new window
  2. sdkmanageropen in new window
你认为这篇文章怎么样?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v3.1.3