Flutter linux ubuntu 16.04安装流程

1.获得安装包,从网上直接下载或者其他途径,这里直接wget

wget http://curl.haxx.se/download/curl-7.20.0.tar.gz
2.解压到当前目录(或者 http://www.linuxidc.com/Linux/2014-08/106022.htm)

 tar -zxf curl-7.20.0.tar.gz
3.进入解压后的目录内

  cd curl-7.17.1
4.配置,指定安装的目录,这里是“/usr/local/curl”

 ./configure --prefix=/usr/local/curl
 make

5.安装 
sudo make install

 

安装 flutter SDK
下载 at: https://flutter.dev/docs/get-started/install/linux

Extract the file in the desired location, for example:

content_copy
$ cd ~/development
$ tar xf ~/Downloads/flutter_linux_v1.5.4-hotfix.2-stable.tar.xz

Add the flutter tool to your path:

content_copy
$ export PATH="$PATH:`pwd`/flutter/bin"
This command sets your PATH variable for the current terminal window only.

Optionally, pre-download development binaries:

The flutter tool downloads platform-specific development binaries as needed. For scenarios where pre-downloading these artifacts is preferable (e.g., hermetic build environments, intermittent network availability), iOS and Android binaries can be downloaded ahead of time by running:

content_copy

$ flutter precache
Run flutter doctor
Run the following command to see if there are any dependencies you need to install to complete the setup (for verbose output, add the -v flag):

content_copy

$ flutter doctor
This command checks your environment and displays a report to the terminal window. The Dart SDK is bundled with Flutter; it is not necessary to install Dart separately. Check the output carefully for other software you may need to install or further tasks to perform (shown in bold text).

For example:

content_copy

[-] Android toolchain - develop for Android devices
    • Android SDK at /Users/obiwan/Library/Android/sdk
    ✗ Android SDK is missing command line tools; download from https://goo.gl/XxQghQ
    • Try re-installing or updating your Android SDK,
      visit https://flutter.dev/setup/#android-setup for detailed instructions.
The following sections describe how to perform these tasks and finish the setup process.

Once you have installed any missing dependencies, run the flutter doctor command again to verify that you’ve set everything up correctly.

The flutter tool uses Google Analytics to anonymously report feature usage statistics and basic crash reports. This data is used to help improve Flutter tools over time. Analytics is not sent on the very first run or for any runs involving flutter config, so you can opt out of analytics before any data is sent. To disable reporting, type flutter config --no-analytics and to display the current setting, type flutter config. See Google’s Privacy Policy

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值