Skip to content

Instantly share code, notes, and snippets.

@takurx
Last active February 22, 2023 01:14
Show Gist options
  • Save takurx/5bdc78a84b660619d21d20ddc52671d4 to your computer and use it in GitHub Desktop.
Save takurx/5bdc78a84b660619d21d20ddc52671d4 to your computer and use it in GitHub Desktop.
log of install flutter

Log

chiya@ujimatsu:~$ sudo snap install flutter --classic
[sudo] password for chiya: 
flutter 0+git.ccbc698 from Flutter Team✓ installed
chiya@ujimatsu:~$ flutter sdk-path
Initializing Flutter
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  173k  100  173k    0     0   791k      0 --:--:-- --:--:-- --:--:--  791k
Downloading https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.7.3-stable.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  536M  100  536M    0     0  46.9M      0  0:00:11  0:00:11 --:--:-- 50.1M
Flutter initialized
Flutter 3.7.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9944297138 (13 days ago) • 2023-02-08 15:46:04 -0800
Engine • revision 248290d6d5
Tools • Dart 2.19.2 • DevTools 2.20.1

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ 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.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ Note: The Google Privacy Policy describes how data is handled in this      ║
  ║ service.                                                                   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/docs/reference/crash-reporting                         ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ╚════════════════════════════════════════════════════════════════════════════╝


/home/chiya/snap/flutter/common/flutter
chiya@ujimatsu:~$ flutter sdk-path
/home/chiya/snap/flutter/common/flutter
chiya@ujimatsu:~$ flutter doctor
Running "flutter pub get" in flutter_tools...
Resolving dependencies in snap/flutter/common/flutter/packages/flutter_tools... (10.6s)
  _fe_analyzer_shared 50.0.0 (53.0.0 available)
  analyzer 5.2.0 (5.5.0 available)
  archive 3.3.2 (3.3.6 available)
  args 2.3.1 (2.4.0 available)
  built_value 8.4.2 (8.4.3 available)
  checked_yaml 2.0.1 (2.0.2 available)
  collection 1.17.0 (1.17.1 available)
  completion 1.0.0 (1.0.1 available)
  coverage 1.6.1 (1.6.3 available)
  dds 2.5.0 (2.7.5 available)
  dds_service_extensions 1.3.1 (1.3.3 available)
  devtools_shared 2.18.0 (2.21.1 available)
  dwds 16.0.2+1 (17.0.0 available)
  fixnum 1.0.1 (1.1.0 available)
  frontend_server_client 3.1.0 (3.2.0 available)
  intl 0.17.0 (0.18.0 available)
  io 1.0.3 (1.0.4 available)
  js 0.6.5 (0.6.7 available)
  json_annotation 4.7.0 (4.8.0 available)
  logging 1.1.0 (1.1.1 available)
  matcher 0.12.13 (0.12.14 available)
  meta 1.8.0 (1.9.0 available)
  mime 1.0.2 (1.0.4 available)
  multicast_dns 0.3.2+2 (0.3.2+3 available)
  native_stack_traces 0.5.2 (0.5.5 available)
  path 1.8.2 (1.8.3 available)
  petitparser 5.1.0 (5.2.0 available)
  source_maps 0.10.11 (0.10.12 available)
  sse 4.1.1 (4.1.2 available)
  test 1.22.0 (1.23.1 available)
  test_api 0.4.16 (0.4.18 available)
  test_core 0.4.20 (0.4.24 available)
  vm_service 9.4.0 (11.0.1 available)
  web_socket_channel 2.2.0 (2.3.0 available)
  webdriver 3.0.1 (3.0.2 available)
Got dependencies in snap/flutter/common/flutter/packages/flutter_tools!
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.3, on Ubuntu 20.04.1 LTS 5.15.0-60-generic,
    locale en_US.UTF-8)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK
      components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup
      for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code (version 1.56.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

! Doctor found issues in 2 categories.

Log

chiya@ujimatsu:~$ export PATH="$PATH:[PATH_OF_FLUTTER_GIT_DIRECTORY]/bin"
chiya@ujimatsu:~$ echo $PATH
/home/chiya/.ghcup/bin:/opt/ros/noetic/bin:/home/chiya/.cabal/bin:/home/chiya/.cargo/bin:/opt/gcc-arm-none-eabi-9-2020-q2-update/bin:/usr/local/cuda/bin:/home/chiya/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:[PATH_OF_FLUTTER_GIT_DIRECTORY]/bin
chiya@ujimatsu:~$ which flutter
/snap/bin/flutter
chiya@ujimatsu:~$ which flutter dart
/snap/bin/flutter
/snap/bin/dart
chiya@ujimatsu:~$ 

Log

chiya@ujimatsu:~/Downloads$ tar -zxvf ./android-studio-2022.1.1.20-linux.tar.gz
android-studio/
android-studio/license/
android-studio/license/libgtest_prod.txt
......
......
android-studio/bin/lldb/helpers/jb_lldb_stepping.py
android-studio/bin/lldb/helpers/jb_lldb_init.py
android-studio/bin/inspect.sh
android-studio/bin/studio64.vmoptions
chiya@ujimatsu:~/Downloads$ sudo mv android-studio /usr/local/
......
......
chiya@ujimatsu:~/Downloads$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
......
......
Setting up libc6-dev:amd64 (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
chiya@ujimatsu:~/Downloads$ /usr/local/android-studio/bin/studio.sh 
chiya@ujimatsu:~/Downloads$ flutter doctor --android-licenses
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.
chiya@ujimatsu:~/Downloads$ sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
......
......
liblzma-dev is already the newest version (5.2.4-1ubuntu1.1).
liblzma-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 588 not upgraded.
chiya@ujimatsu:~/Downloads$ flutter channel stable
Switching to flutter channel 'stable'...
git: Already on 'stable'
git: Your branch is up to date with 'origin/stable'.
Successfully switched to flutter channel 'stable'.
To ensure that you're on the latest build from this channel, run 'flutter upgrade'
chiya@ujimatsu:~/Downloads$ flutter upgrade
Flutter is already up to date on channel stable
Flutter 3.7.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9944297138 (13 days ago) • 2023-02-08 15:46:04 -0800
Engine • revision 248290d6d5
Tools • Dart 2.19.2 • DevTools 2.20.1
chiya@ujimatsu:~/Downloads$ flutter devices
2 connected devices:

Linux (desktop) • linux  • linux-x64      • Ubuntu 20.04.1 LTS 5.15.0-60-generic
Chrome (web)    • chrome • web-javascript • Google Chrome 109.0.5414.119
chiya@ujimatsu:~/Downloads$ 

Log

chiya@ujimatsu:~/Works$ mkdir test_flutter
chiya@ujimatsu:~/Works$ cd test_flutter/
chiya@ujimatsu:~/Works/test_flutter$ flutter create my_app
Creating project my_app...
Running "flutter pub get" in my_app...
Resolving dependencies in my_app... (1.3s)
+ async 2.10.0
+ boolean_selector 2.1.1
+ characters 1.2.1 (1.3.0 available)
+ clock 1.1.1
+ collection 1.17.0 (1.17.1 available)
+ cupertino_icons 1.0.5
+ fake_async 1.3.1
+ flutter 0.0.0 from sdk flutter
+ flutter_lints 2.0.1
+ flutter_test 0.0.0 from sdk flutter
+ js 0.6.5 (0.6.7 available)
+ lints 2.0.1
+ matcher 0.12.13 (0.12.14 available)
+ material_color_utilities 0.2.0
+ meta 1.8.0 (1.9.0 available)
+ path 1.8.2 (1.8.3 available)
+ sky_engine 0.0.99 from sdk flutter
+ source_span 1.9.1
+ stack_trace 1.11.0
+ stream_channel 2.1.1
+ string_scanner 1.2.0
+ term_glyph 1.2.1
+ test_api 0.4.16 (0.4.18 available)
+ vector_math 2.1.4
Changed 24 dependencies in my_app!
Wrote 127 files.

All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your application, type:

  $ cd my_app
  $ flutter run

Your application code is in my_app/lib/main.dart.

chiya@ujimatsu:~/Works/test_flutter$ cd my_app/
chiya@ujimatsu:~/Works/test_flutter/my_app$ flutter run -d chrome
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...             29.0s
This app is linked to the debug service: ws://127.0.0.1:42637/HG4pxejP5ag=/ws
Debug service listening on ws://127.0.0.1:42637/HG4pxejP5ag=/ws

💪 Running with sound null safety 💪

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".

An Observatory debugger and profiler on Chrome is available at: http://127.0.0.1:42637/HG4pxejP5ag=
The Flutter DevTools debugger and profiler on Chrome is available at:
http://127.0.0.1:9100?uri=http://127.0.0.1:42637/HG4pxejP5ag=
Application finished.
chiya@ujimatsu:~/Works/test_flutter/my_app$ flutter build web

💪 Building with sound null safety 💪

Compiling lib/main.dart for the Web...                             35.4s
chiya@ujimatsu:~/Works/test_flutter/my_app$ ls
analysis_options.yaml  build  lib    macos       pubspec.lock  README.md  web
android                ios    linux  my_app.iml  pubspec.yaml  test       windows
chiya@ujimatsu:~/Works/test_flutter/my_app$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment