android - 'adb' 未被识别为 cmdlet、函数、脚本文件或可运行程序的名称
问题描述
我正在尝试学习 react-native,现在我正在尝试从 react-native 文档在我的 android 设备(不是模拟器)上运行我的 react-native 应用程序我可以通过在上输入“adb devices”来查看我连接的设备终点站。但在我的情况下我不能这样做,它显示了一些像这样的错误
adb : The term 'adb' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ adb devices
+ ~~~
+ CategoryInfo : ObjectNotFound: (adb:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
解决方案
推荐阅读
- python - Python:以特定顺序提取给定数组的元素
- postgresql - postgres pg_dump 数据库备份
- swift - kotlin 中的 WebSockets
- python - 从 python 中访问 tensorflow/core/framework/cpu_allocator_impl.cc
- c# - 在 ActionFilterAttribute 中查找过滤器
- python - 在字典列表中查找键值,然后替换其他值
- python - 我想根据行内的条件从烧瓶 db.execute 查询中删除一行
- python - 尝试使用谷歌工作表的电子表格().batchUpdate()时“收到无效的 JSON 有效负载”
- java - Base64 错误:javax.xml.bind.DatatypeConverter.parseBase64Binary 处的 java.lang.NullPointerException(DatatypeConverter.java:296)
- javascript - React Children 组件丢失了重新渲染内部另一个组件的状态