mac安装adb

brew tap caskroom/versions

brew cask install android-platform-tools

直接下载:

https://dl.google.com/android/repository/platform-tools-latest-darwin.zip

https://dl.google.com/android/repository/platform-tools-latest-linux.zip

https://dl.google.com/android/repository/platform-tools-latest-windows.zip

只是我被墙了。f。

alices-iMac:~ alice$ brew install android-platform-tools

Error: No available formula with the name “android-platform-tools”

It was migrated from homebrew/core to caskroom/cask.

You can access it again by running:

  brew tap caskroom/cask

alices-iMac:~ alice$ brew tap caskroom/cask

==> Tapping caskroom/cask

Cloning into ‘/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask’…

remote: Counting objects: 3993, done.

remote: Compressing objects: 100% (3970/3970), done.

remote: Total 3993 (delta 36), reused 486 (delta 19), pack-reused 0

Receiving objects: 100% (3993/3993), 1.36 MiB | 43.00 KiB/s, done.

Resolving deltas: 100% (36/36), done.

Checking out files: 100% (3978/3978), done.

Tapped 0 formulae (4,002 files, 4.3MB)

alices-iMac:~ alice$ brew cask install android-platform-tools

==> Creating Caskroom at /usr/local/Caskroom

==> Satisfying dependencies

==> Downloading https://dl.google.com/android/repository/platform-tools_r27.0.1-

curl: (6) Could not resolve host: dl.google.com

Error: Download failed on Cask ‘android-platform-tools’ with message: Download failed: https://dl.google.com/android/repository/platform-tools_r27.0.1-darwin.zip

brew主要用来下载一些不带界面的命令行下的工具和第三方库来进行二次开发

brew cask主要用来下载一些带界面的应用软件,下载好后会自动安装,并能在mac中直接运行使用

举个例子,

brew install curl可以安装curl第三方库,这样你在开发时就可以使用它的库来进行开发

brew cask install chrome可以安装谷歌浏览器应用程序,可直接运行

作者:Cloud Strife

链接:https://www.zhihu.com/question/22624898/answer/105234217

    原文作者:西凉0
    原文地址: https://www.jianshu.com/p/ac43e005485a
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞