前言:

换了新的Mac本办公,想通过usb链接设备的方式调试设备时发现mac没有自带adb,还需要重新安装,查了一些资料发现我之前写过mac上关于abd环境的安装,真是没有一点记忆力了

问题:

homebrew安装adb,执行brew cask install android-platform-tools命令时提示error

原因:

homebrew安装工具时不再使用brew cask这种格式,改成brew <command> --cask了

解决方案:

brew install android-platform-tools --cask

结果验证:

再次输入adb devices 显示安装成功(已通过usb方式链接设备,会有devices list显示)

Error: `brew cask` is no longer a `brew` command. Use `brew <command> --cask` instead.相关推荐

  1. React 报错 Error: useRoutes() may be used only in the context of a <Router> component

    使用react-router-dom V6 发生报错,找了一会才解决,做个记录 报错意思:大概就是要给路由提供一个上下文 报错原因,一开始我是把 BrowserRouter 放到 App.js 文件中 ...

  2. 【已解决】Error: `brew cask` is no longer a `brew` command. Use `brew <command> --cask` instead.

    codemak1r@CodeMak1rMacBook ~ % brew cask install font-fira-code-nerd-fontError: `brew cask` is no lo ...

  3. 训练时发生的错误:Couldn‘t open shared file mapping: <000001910A228862>, error code: <1455>

    今天在运行TTSR时第14个epoch时发生了以下错误: 看到一篇博客有写: RuntimeError: Couldn't open shared file mapping: <torch_37 ...

  4. Error: illegal invocation in <execute> or <revert> phase (action: element.updateProperties或Laber)

    报错类似于:Error: illegal invocation in <execute> or <revert> phase (action: element.updatePr ...

  5. 使用brew安装hexo报错--- Cowardly refusing to `sudo brew install`

    最近准备用hexo搭建自己的博客(https://jingwanli6666.github.io/正在建设当中,敬请期待),使用命令行安装node brew install node 报如下的错误: ...

  6. mac homebrew 卸载php,Mac_苹果mac电脑中brew的安装使用及卸载详细教程,brew 又叫Homebrew,是Mac OSX上的 - phpStudy...

    苹果mac电脑中brew的安装使用及卸载详细教程 brew 又叫Homebrew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件, 只需要一个命令, 非常方便 brew类似 ...

  7. Error: <spyOn> : handleError() method does not exist

    单元测试出错: Error: : handleError() method does not exist Usage: spyOn(, ) at at UserContext.apply (http: ...

  8. [ERROR] The distro “Ubuntu“ has running processes and can‘t be operated. “wsl -t <name>“ ......

    WSL系统盘向其他盘迁移过程中,使用LxRunOffline,运行命令 .\LxRunOffline move -n Ubuntu -d F:\Ubuntu 出现报错: [ERROR] The dis ...

  9. 关于react-router-dom 6.0.1的更新基本写法 解决Error: A <Route> is only ever to be used as the child of <Routes>

    文章目录 前言 一.先准备好要切换的组件 二.在 V5 版本则是这样使用 v5版本:`Router`直接包裹着`Route组件` 三.在V6版本则是这样使用 v6版本:`Route`需要先被`Rout ...

最新文章

  1. 归并排序(代码注释超详细)
  2. C#复制图片_并重命名
  3. 思考Web应用的数据流
  4. Lesson 8.38.4 二分类神经网络torch.nn.functional实现单层二分类网络的正向传播
  5. python 机器学习 爬取关键字_5行Python就能爬取 3000+ 上市公司的信息?
  6. 微服务化之缓存的设计
  7. 记录 之 tf.data进行数据集处理常用的几个函数介绍
  8. Docker端口映射实现
  9. Android MediaScanner:(一)MediaScanner总体架构
  10. ASP.NET C# 数字格式化输出
  11. MySQL数据库同步神器 - Gravity - 比Datax好用
  12. php用空格分隔的字符串对比,探讨各种PHP字符串函数的总结分析
  13. Windows平台JDK安装
  14. 手把手教你做个人 app
  15. 华为LTC专家铁三角实战专家许浩明老师辅导长沙卷烟厂管理变革【华为案例分享】
  16. smartprinter注册版_SmartPrinter免费版
  17. Springboot疫情防控下基于微信小程序的食堂订餐系统 毕业设计-附源码261620
  18. [css文字单行省略与多行省略]
  19. mac book pro高清录屏教程(obs录屏+麦克风录制+soundflower电脑声录制)三合一
  20. MySQL里Wating for Slave workers to free pending events到底在等什么

热门文章

  1. 以太坊开发(一)——Truffle和Ganache
  2. SQL SERVER使用STUFF函数拼接
  3. eDiary 个人日记本使用技巧
  4. 微机原理与接口技术--西安电子科技大学-笔记一
  5. 低功耗微波雷达模组的应用你都知道多少?
  6. 这两天学会了怎么给线上锡,怎么剥线,怎么焊接两根线。
  7. 计算机进制转换小程序
  8. 抗体偶联药物 (ADC)——抗肿瘤细胞
  9. 伽马校正(gamma correction)学习笔记
  10. The Buffer Bomb