首页 > 解决方案 > '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

标签: androidreact-native

解决方案


推荐阅读