现在使用
brew tap homebrew/cask
brew install --cask android-platform-tools
安装adb是应该是会报unavailable错误的:
Cask 'android-platform-tools' is unavailable: No Cask with this name exists.
这和源没有关系,github官方源和国内源都是这个错误(我在切换源那里浪费了很多时间。)
所以正确的安装方法:
1. 通过brew安装adb
brew install Caskroom/cask/android-platform-tools
就可以了
如果出现443错误:
fatal: unable to access 'https://github.com/Caskroom/homebrew-cask/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Error: Failure

本文指导如何在遇到'android-platform-tools'不可用错误时正确安装ADB,包括通过Caskroom/cask源和处理443错误。还介绍了手动安装步骤及常见问题排查方法。
最低0.47元/天 解锁文章
5万+





