adb 在 Windows 上不被识别为内部或外部命令 [英] adb is not recognized as internal or external command on windows
问题描述
我将 c:/android-sdk/tools
路径设置为路径环境,并且诸如 emulator
之类的命令工作正常.但是 adb
命令仍然无法识别,我该怎么办?
I set the c:/android-sdk/tools
path to the path environment and commands like emulator
is working just fine. But the adb
command is still not recognized, what should I do ?
在 path
系统变量中,我添加了 android-sdk
路径和 tools
路径.还有什么需要做的吗?因为像 adb devices
这样的命令不起作用.它说无法识别该命令.顺便说一句,我想做adb install comeapp.apk
.
In the path
system variable I added the android-sdk
path and the tools
path so far. Is there something else that needs to be done? Because commands like adb devices
do not work. It says that the command is not recognized. By the way I want to do adb install comeapp.apk
.
推荐答案
如果您转到 android-sdk/tools
文件夹,我想您会找到一条消息:
If you go to your android-sdk/tools
folder I think you'll find a message :
adb 工具已移至 platform-tools/
The adb tool has moved to platform-tools/
如果在你的 SDK 中没有看到这个目录,启动 SDK 和 AVD Manager(执行 android 工具)并安装Android SDK 平台工具"
If you don't see this directory in your SDK, launch the SDK and AVD Manager (execute the android tool) and install "Android SDK Platform-tools"
请将您的 PATH 环境变量更新为包括 platform-tools/目录,这样你就可以从任何位置执行 adb.
Please also update your PATH environment variable to include the platform-tools/ directory, so you can execute adb from any location.
因此您还应该将 C:/android-sdk/platform-tools
添加到您的环境路径中.此外,在修改 PATH
变量后,请确保启动一个新的 CommandPrompt
窗口.
So you should also add C:/android-sdk/platform-tools
to you environment path. Also after you modify the PATH
variable make sure that you start a new CommandPrompt
window.
这篇关于adb 在 Windows 上不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!