sudo echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/lubuntu/Tools/android-sdk-linux/platform-tools
adb位于/home/lubuntu/Tools/android-sdk-linux/platform-tools
中。
然后我执行了adb start-server
命令:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
然后输入“sudo adb install test.apk”进行安装。
sudo: adb: command not found
我已将adb添加到环境变量$PATH中,但sudo找不到它。为什么?
-E
选项,但是还是失败了,sudo -E adb install temp.apk
==>sudo: adb: command not found
,-E
选项对于sudo
不起作用吗? - Searene