macos 安装adb调试工具

香蕉你个不呐呐
2024-01-12 / 0 评论 / 7 阅读 / 正在检测是否收录...

前置条件:
需要安装brew包管理器执行如下命令即可进行安装。

Last login: Fri Jan 12 20:56:18 on ttys001

# 安装 android-platform-tools
sloot@slootdeMacBook-Pro ~ % brew install android-platform-tools --cask
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api/cask.jws.json
  #=O=#    #     #
==> Downloading https://dl.google.com/android/repository/platform-tools_r34.0.5-darwin.zip
############################################################################################################################ 100.0%
==> Installing Cask android-platform-tools
==> Linking Binary 'adb' to '/usr/local/bin/adb'
==> Linking Binary 'etc1tool' to '/usr/local/bin/etc1tool'
==> Linking Binary 'fastboot' to '/usr/local/bin/fastboot'
==> Linking Binary 'hprof-conv' to '/usr/local/bin/hprof-conv'
==> Linking Binary 'make_f2fs' to '/usr/local/bin/make_f2fs'
==> Linking Binary 'make_f2fs_casefold' to '/usr/local/bin/make_f2fs_casefold'
==> Linking Binary 'mke2fs' to '/usr/local/bin/mke2fs'
🍺  android-platform-tools was successfully installed!

# 查看adb版本
sloot@slootdeMacBook-Pro ~ %  adb --version
Android Debug Bridge version 1.0.41
Version 34.0.5-10900879
Installed as /usr/local/bin/adb
Running on Darwin 23.2.0 (x86_64)

# 查看安装所在路径
sloot@slootdeMacBook-Pro ~ %  brew info android-sdk --cask
==> android-sdk: 4333796
https://developer.android.com/studio/releases/sdk-tools
Deprecated because it is discontinued upstream!
Not installed
From: https://mirrors.ustc.edu.cn/homebrew-cask.git
==> Name
Android SDK
==> Description
Tools for the Android SDK
==> Artifacts
/usr/local/Caskroom/android-sdk/4333796/tools/android (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/emulator (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/emulator-check (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/mksdcard (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/monitor (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/bin/apkanalyzer (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/bin/archquery (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/bin/avdmanager (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/bin/jobb (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/bin/lint (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/bin/monkeyrunner (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/bin/screenshot2 (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/bin/sdkmanager (Binary)
/usr/local/Caskroom/android-sdk/4333796/tools/bin/uiautomatorviewer (Binary)
==> Caveats
android-sdk requires Java 8. You can install it with:
  brew install --cask homebrew/cask-versions/temurin8

==> Analytics
install: 2,730 (30 days), 9,456 (90 days), 30,003 (365 days)
0

评论

博主关闭了所有页面的评论