0

我刚刚通过 snapstore 在 Ubuntu 20.04 上安装了 Flutter

sudo snap install flutter --classic

但是,安装完成后,如果我在控制台(或任何其他包括flutter)中运行此命令

flutter

我得到这个错误

Initializing Flutter
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   193  100   193    0     0     48      0  0:00:04  0:00:03  0:00:01    48
parse error: Invalid numeric literal at line 1, column 6
parse error: Invalid numeric literal at line 1, column 6
jq: error: syntax error, unexpected ')' (Unix shell quoting issues?) at <top-level>, line 1:
[.releases[] | select(.hash==)][0].archive
jq: 1 compile error
Downloading /
curl: (3) <url> malformed
tar: latest_stable.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Flutter initialization failed
Could not find working copy of Flutter
4

1 回答 1

0

阿德里安。您可以尝试从以下提供的路径运行它:

flutter sdk-path
于 2022-02-19T20:02:17.367 回答