flutter build apk
bash: flutter: command not found

在studio中的控制台出现上面错误(如图所示)

解决办法:

安装flutter时,安装时可以执行flutter doctor -v ,当关闭黑窗口再次打开输入时,就出现 -bash: fultter: command not found

网上答案:

如果你也出现这个错误可能是这个原因,查看一下你的path是否设置正确,

mac终端打开.bash_profile命令:open ~/.bash_profile

或者找到这个文件用text、Xcode等编辑器打开,并修改其中的文字:

添加

export PATH_TO_FLUTTER_GIT_DIRECTORY=/Users/aa/flutter     //flutter的安装目录

export PATH=${PATH}:${PATH_TO_FLUTTER_GIT_DIRECTORY}/bin

让.bash_profile生效的命令是:source .bash_profile

转载于:https://www.cnblogs.com/Oldz/p/11096718.html

-bash: fultter: command not found相关推荐

  1. bash: vue: command not found

    安装vue的时候提示:bash: vue: command not found 我的原因node.js 环境变量配置有问题,最后添加了环境变量就好了..........

  2. bpython ipython_安装ipython后命令找不到ipython bpython -bash: *python: command not found

    原博文 2018-10-30 21:53 − ipython bpython -bash: *python: command not found 问题: 当pip安装ipython, bpython后 ...

  3. -bash: sz: command not found

    [root@izr86o15kikb3az home]# sz /tmp/shared -bash: sz: command not found [root@izr86o15kikb3az home] ...

  4. -bash: git: command not found

    -bash: git: command not found 执行命令: yum install -y git

  5. -Bash: Unzip: Command Not Found解决方法 安装unzip

    利用unzip命令解压缩的时候,出现-bash: unzip: command not found的错误. unzip--命令没有找到,其原因肯定是没有安装unzip.利用一句命令就可以解决了. 命令 ...

  6. Debian/Ubuntu 报错解决:-bash: ifconfig: command not found

    晚上在虚拟机里安装了最新的 Debian 9,然后想查看ip地址的时候报错了: zhang@debian:~$ ifconfig -bash: ifconfig: command not found ...

  7. 修复“-bash: locate: command not found”

    部分Linux版本使用locate命令出现一下错误: 1 -bash: locate: command not found (一)其原因是没有安装mlocate这个包;按顺序执行如下命令: 1 yum ...

  8. bash: ifconfig: command not found

    法一:[root@localhost sbin]$ /sbin/ifconfig 就可以出现使用了  方法二:[root@localhost sbin]$ export PATH=$PATH:/sbi ...

  9. 关于使用mail命令产生:-bash: mail: command not found的解决方法

    近日,配置zabbix邮件告警的时候,安装好了sendmail后,运行命令: [root@slave ~] # mail -s "test" 111111@qq.com < ...

最新文章

  1. 曙光i620c20用户手册_曙光天阔I620-G20服务器技术白皮书.pdf
  2. Unhandled exception: org.springframework.beans.factory.BeanDefinitionStoreException
  3. python学多久能写东西的软件有哪些_怎么自学python,大概要多久?
  4. slider获取点击 unity_Unity基础 | 70分钟带你轻松入门
  5. 【openjudge】字符串排序
  6. Can‘t resolve ‘core-js NPM 引入 core js 失败 解决
  7. Vue2.0源码解析 - 知其然知其所以然之keep-alive原理分析(二)
  8. android 家庭监控,最好的三款家庭安防智能监控APP
  9. 发现一个有意思的奇葩极客网站
  10. Python 自己简单地造一个轮子.whl文件
  11. sizeof结构体指针
  12. 数据挖掘:探索性数据分析(EDA)
  13. net-java-php-python-校园二手图书销售网站计算机毕业设计程序
  14. 团购网站的现状和未来
  15. 消防火灾联动报警系统中环网冗余型CAN转光纤的CAN光端机应用
  16. 什么是挂载,Linux挂载如何实现详解
  17. java物流管理系统_java web物流管理系统
  18. 从 MIT 协议谈契约精神
  19. 证明正方形和圆有交点
  20. iMindMap字体如何进行修改

热门文章

  1. 禅道Docker安装包发布
  2. 2022-2028年中国卫星互联网产业深度调研及投资前景预测报告(全卷)
  3. 【软件工程】RUP与软件开发5大模型
  4. BERT可视化工具bertviz体验
  5. LeetCode简单题之分糖果 II
  6. k8s核心组件详细介绍教程(配超详细实例演示)
  7. DeepLabV3+语义分割实战
  8. 使用nGraph的Intel®Xeon®上的高性能TensorFlow
  9. Android各版本新特性
  10. 2021年大数据ELK(七):安装Elasticsearch-head插件