macOS通过brew安装adb报错: Cask ‘android-platform-tools‘ is unavailable
现在使用
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 while executing; `git clone https://github.com/Caskroom/homebrew-cask /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask --origin=origin --template=` exited with 128.
通常是proxy的问题,只需要:
git config --global --unset http.proxy
git config --global --unset https.proxy
即可。当然,你可能需要修改hosts文件,或者此时的系统代理能让你直接访问github。
2. 手动安装adb
2.1 点击这里 下载android-sdk-macosx
2.2 解压并移动到某个位置
#先到下载目录
cd ~/Downloads
unzip android-sdk*.zip
mkdir ~/.android-sdk-macosx
mv platform-tools/ ~/.android-sdk-macosx/platform-tools
2.3 添加path并重载shell profile(文件名根据shell的不同而变换)
echo 'export PATH=$PATH:~/.android-sdk-macosx/platform-tools/' >> ~/.bash_profile
source ~/.bash_profile
2.4 测试adb是否正常运行
adb devices
macOS通过brew安装adb报错: Cask ‘android-platform-tools‘ is unavailable相关推荐
- mac安装adb报错Unknown command: cask
1.通过 Homebrew 安装 adb user/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/mast ...
- 使用brew安装hexo报错--- Cowardly refusing to `sudo brew install`
最近准备用hexo搭建自己的博客(https://jingwanli6666.github.io/正在建设当中,敬请期待),使用命令行安装node brew install node 报如下的错误: ...
- 安装adb,使用adb报错及方案
1.安装adb: brew cask install android-platform-tools # 问题:brew命令失败报错如下: # 解决过程: brew update-reset # ...
- adb 安装apk报错Failure [INSTALL_FAILED_TEST_ONLY:]
同样的debug apk在as上安装没任何问题,但是用adb命令安装却报错:INSTALL_FAILED_TEST_ONLY 原因:as安装apk时会给清单文件的application节点里加上tes ...
- python安装报错类型_解决Python安装cryptography报错问题
解决Python安装cryptography报错问题 错误一: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wst ...
- 安装Swoole报错 make: *** [php_swoole_cxx.lo] Error 1
安装swoole报错,错误信息如下: /Users/luzhuang/Downloads/swoole-src-4.4.3/include/swoole.h:596:10: fatal error: ...
- Windows安装pyav报错:ERROR: Failed building wheel for av.Failed to build av. ERROR: Could not build wheel
Windows安装pyav报错:ERROR: Failed building wheel for av.Failed to build av. ERROR: Could not build wheel ...
- 安装APK报错解决方法
adb install xxx.apk 报错,安装APK报错:INSTALL_FAILED_SHARED_USER_INCOMPATIBLE.INSTALL_PARSE_FAILED_INCONSIS ...
- mac下使用Homebrew安装nginx报错
mac下安装nginx 安装命令:$ brew install nginx 安装时报如下错误: Updating Homebrew... error: Not a valid ref: refs/re ...
最新文章
- 个人总结1[检查复选框选择个数:]
- 设计模式-UML关系基础
- matlab代码转换成python_[Python]40行代码实现公式转换成图片,手把手教你从模仿到实现...
- 第 20 次 CSP认证 202009-5 密信与计数
- P1533 可怜的狗狗
- 提高开发效率的 Eclipse 实用操作
- 数据库 webSQL使用方法
- 期刊论文格式模板 电子版_期刊论文发表流程是怎样的呢?
- css border设置为透明
- UE4 编辑器脚本-批量创建LOD
- 《系统工程理论与实践》Latex 模板使用教程
- GUI入门实例:一文读懂基本的Matlab的GUI设计方法
- 以太坊网络重启并开启rpc
- 分形理论在地理信息科学研究中的应用
- Apriori关联分析算法 -尿布与啤酒的故事
- Altium AD20整板放置GND过孔、批量放置GND过孔/缝合孔
- 科普文章-另一个视角解读计算机编码 修订版
- 彻底搞懂javascript中的replace函数
- 江苏省谷歌地球高程DEM等高线下载
- [转]信息安全相关理论题(三)