烧录程序提示fastboot没有那个文件或目录"/>
android fastboot烧录程序提示fastboot没有那个文件或目录
android 5.1
.html
fastboot烧录程序提示fastboot没有那个文件或目录,或提示:=:需要一元表达式
解决办法如下:
重新FastBoot的安装(Ubuntu)
一般来说,如果你安装了Android Sdk,那么fastboot就在你的platform-tools目录下面.
你也可以通过一下代码来安装:
-
sudo apt-get update
-
sudo apt-get install android-tools-fastboot
FastBoot的环境变量设置(Ubuntu)
使用以下命令来查看fastboot所在的位置:
which fastboot
我的电脑的结果:
-
zyr:~/Android/Sdk/platform-tools$ which fastboot
-
/usr/bin/fastboot
使用以下命令打开~/.bashrc文件
vim ~/.bashrc
按下i键进入编辑模式,
添加一行
PATH=$PATH:/usr/bin/fastboot
这里$PATH:后面的路径就是你执行which命令的结果.
然后执行
source ~/.bashrc
在终端上输入fastboot -h 看下是否出错。
然后将/usr/bin/下的fastboot拷贝到烧录程序的那个目录,然后错误提示消除了!
更多推荐
android fastboot烧录程序提示fastboot没有那个文件或目录
发布评论