'adb' 不是内部或外部命令,也不是可运行的程序或批处理文件。
在座android开发中我们都离不开使用adb来操作一些东西,但是当我们在命令行中使用adb的时候,有时会出现'adb' 不是内部或外部命令,也不是可运行的程序或批处理文件。这样的提示,这是我们就需要要做一些处理了。
错误的原因主要是找不到adb.exe文件,在最初的android sdk中adb.exe是位于sdk目录下的tools文件夹下,因为我们只要在系统环境变量PATH中加入sdk\tools就可以了,但是后来的android sdk将adb.exe移动到platform-tools下。因为在tools中有一个文本提示adb_has_moved.txt,其内容为
The adb tool has moved to platform-tools/
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"
Please also update your PATH environment variable to
include the platform-tools/ directory, so you can
execute adb from any location.
因此我们这里的解决方法有两种,一种是在命令行中切换到platform-tools,然后指定adb,当然这种方式很麻烦,因为每次都要切换。第二种方式就是将platform_tools放到环境变量PATH中,这样就可以可以在任何地方都可以使用adb了。
Last Modified:2011-10-23
'adb' 不是内部或外部命令,也不是可运行的程序或批处理文件。
原创
©著作权归作者所有:来自51CTO博客作者androidyue的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
‘telnet‘ 不是内部或外部命令,也不是可运行的程序或批处理文件。
问题展示
intellij-idea 客户端 解决方法 其他 -
'mysql' 不是内部或外部命令,也不是可运行的程序或批处理文件
mysql服务启动成功登陆数据库是报错:mysql 不是内部命令 也不是外部命令配置环境变量 找到mysql的安装位置 将bin目录(C:\Program Files\MySQL\MySQL Server 5.7\bin)添加到环境变量的path内登陆成功:...
'mysql' 不是内部或外部命令 也不是可运行的程序或批处 mysql 环境变量 数据库 -
‘vue‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
原因。npm已经安装。但是没有配置环境变量解决方案配置环境变量首先找到npm路径npm config list把这个路径配
vue.js npm 前端 环境变量 配置环境变量 -
不是内部或外部命令,也不是可运行的程序 或批处理文件。
配置好环境变量后,重新启动命令行进程 ...
重新启动 环境变量 命令行 其他