Skip to content

Instantly share code, notes, and snippets.

@realamirhe
Last active October 5, 2021 17:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realamirhe/f15f85ab65da0cb4e0ee9a18e40d5b14 to your computer and use it in GitHub Desktop.
Save realamirhe/f15f85ab65da0cb4e0ee9a18e40d5b14 to your computer and use it in GitHub Desktop.
Installing flutter in Ubuntu with sanctions

Installing flutter in Ubuntu with sanctions

  1. Install snap
  2. follow instruction of this youtube video

Notes:

install flutter with snap

sudo snap install flutter --classic

If flutter snap version was not compatible with the latest release, don't flutter upgrade.

flutter upgrade download the newest version and it may face following error known for this flutter issue

Initializing Flutter
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 /
...

all files from google storage service are banned and can not be downloaded properly so you can use following service which change your DNS.

  1. shecan
  2. fod In the case that both fail to download the proper files.

for flutter binaries

  1. run flutter command in terminal and press ctrl+c to terminate the process after download is starting.
  2. copy the download link shown on terminal or use the latest realse direct download link
  3. use your browser and vpn extenstion/add-ons like zenMate and download that file
  4. each file is in the format of flutter_linux_<version>-stable.tar.xz and contains the flutter folder
  5. go to flutter directory pwd && cd snap/flutter/common it must have the another flutter folder
  6. extract the flutter content of flutter_linux_<version>-stable.tar.xz into the seen flutter folder
  7. run flutter command again

In a case android tool chain faced issue, follow this instruction


In a case an android studio face some issue in downloading, follow this instruction


In a case an build process failed and can't download any content , follow this instruction

In a case an android studio face some issue in downloading, follow this instruction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment