'adb' 不是内部或外部命令,也不是可运行的程序或批处理文件 [英] 'adb' is not recognized as an internal or external command, operable program or batch file

查看:30
本文介绍了'adb' 不是内部或外部命令,也不是可运行的程序或批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在模拟器上运行 google map v2,我正在关注 这个教程.当我尝试在模拟器上安装所需的 apk 文件时,出现以下错误.

I am trying to run google map v2 on emulator, I am following this tutorial. When I was trying to install required apk file on emulator, I am getting below error.

我尝试使用 解决此问题这个教程.按照所有步骤,将paltform-tools的路径添加到环境路径.同样在修改 PATH 变量后启动了一个新的 CommandPrompt 窗口.

I tried to solve this using this tutorial.Followed all steps, added the path to paltform-tools to environment path. Also after modifying the PATH variable started a new CommandPrompt window.

但得到同样的错误.我需要在模拟器上检查我的谷歌地图应用程序.请推荐我.

But getting the same error. I need to check my google map application on emulator. Kindly suggest me.

'adb' is not recognized as an internal or external command,
operable program or batch file.

推荐答案

将 adb 的路径设置为系统变量.可以在ADT Bundle/sdk/platform-tools"中找到adb 设置路径并重启cmd n 再试一次.

Set the path of adb into System Variables. You can find adb in "ADT Bundle/sdk/platform-tools" Set the path and restart the cmd n then try again.

如果您不想设置 PATH,您也可以转到 adb.exe 所在的目录并执行相同的操作.

You can also goto the dir where adb.exe is located and do the same thing if you don't wanna set the PATH.

如果你想看到所有的路径,就去做

If you wanna see all the paths, just do

echo %PATH%

这篇关于'adb' 不是内部或外部命令,也不是可运行的程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆