亚行没有被识别为在Windows内部或外部命令命令、Windows

2023-09-12 09:08:07 作者:Marlboro诱惑

我设置C:/ Android的SDK /工具路径到PATH环境和命令,如模拟器的工作就好了。但亚行命令仍然无法识别,我该怎么办?

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 ?

我的道路系统变量我加入了Android的SDK路径,到目前为止的工​​具路径。有没有别的东西,需要做什么?像亚行设备事业命令不工作,首先说,命令无法识别。当我想要做的亚行安装comeapp.apk的方式...

I the path system variable I added the android-sdk path and the tools path so far. Is there something else that need to be done ? cause commands like adb devices doesn't works it says that the command is not recognized. By the way I want to do adb install comeapp.apk...

感谢

推荐答案

如果你去你的 Android的SDK /工具文件夹,我想你会发现一条消息:

If you go to your android-sdk/tools folder I think you'll find a message :

亚行工具已移动到平台工具/

The adb tool has moved to platform-tools/

如果你没有看到你的SDK这个目录,   推出SDK和AVD管理器(运行Android的工具)   并安装的Andr​​oid 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环境变量   包括平台工具/目录下,这样你就可以   从任何位置执行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 /平台工具你的环境路径。另外在修改 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.