进程'command'/ Users / username / flutter / bin / flutter''完成,退出值非零1 Android Studio

时间:2020-09-28 23:59:02

标签: android-studio flutter

我正在尝试打开一个flutter项目,并且刚刚安装了flutter。在我安装的终端中运行flutter doctor -v时,得到以下信息:

[✓] Flutter (Channel master, 1.22.0-10.0.pre.401, on Mac OS X 10.14.6 18G103
    x86_64, locale en-UA)
    • Flutter version 1.22.0-10.0.pre.401 at /Users/username/flutter

但是如果在另一个终端窗口中运行flutter doctor -v,我会得到flutter command not found

我直接将flutter下载到了我的用户帐户中,因此我的bash_profile如下所示:

export PATH=/usr/local/flutter/bin:$PATH 

我还将此添加到了local.properties中,这是在尝试运行应用程序时出现错误的地方:

flutter.sdk=/Users/username/flutter

0 个答案:

没有答案