Linux installation flutter

Install flutter on Linux

1. Install flutter using snapshot

Install snapd

sudo apt update
sudo apt install snapd

Install flutter

sudo snap install flutter --classic

show flutter sdk-path

flutter sdk-path

2. Manually install flutter

View the installation process on the flutter official website

https://docs.flutter.dev/get-started/install/linux

flutter Chinese website

https://flutter.cn/docs/development/tools/sdk/releases?tab=linux

1. Download flutter on the flutter installation process

2. Unzip the file to the desired location

cd ~/development
tar xf ~/Downloads/flutter_linux_3.7.12-stable.tar.xz

3. Add the tool to the path:flutter

export PATH="$PATH:`pwd`/flutter/bin"

4. Pre-download development binaries:

The tool downloads platform-specific development binaries as required. For cases where it is best to pre-download these projects (for example, in a sealed build environment, or where network availability is intermittent), the iOS Android binaries can be downloaded ahead of time by running the following command:flutter

flutter precache

5. Run the following command to see if any dependencies need to be installed to complete the setup (for verbose output, add the flag):-v

$ flutter doctor -v

Insert image description here

Guess you like

Origin blog.csdn.net/weixin_48824655/article/details/130426269