在命令行中输入adb shell,本来是应该可以用的,但是,命令行却跳出一条:“adb不是内部或外部命令,也不是可运行程序或批处理文件”
有人说是sdk没有配置环境变量,然后在cmd里面输入android却是正常的,那么就证明不是sdk没有配置环境变量。
1.去看tools文件夹,发现有个文件叫adb_has_moved,文件内容是
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里面就可以了。
2.将platform-tools文件件里面的adb和AdbWinApi.dll文件复制到tools文件夹里面就可以了。
问题产生原因:
据说是2.2和2.1的区别~~~