UbuntuでもFlutter開発環境を作ってみた

 Android Studioは公式の説明通りにインストールしFlutterとDartのプラグインを追加した。

Google Pixelを有効にするためのコマンド
echo "SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"18d1\", MODE=\"0666\", GROUP=\"plugdev\"" > /tmp/51-android.rules
sudo cp /tmp/51-android.rules /etc/udev/rules.d/51-android.rules

Flutterのインストール
git clone https://github.com/flutter/flutter
sudo mv flutter /usr/local/
sudo apt install clang curl pkg-config ninja-sudo apt install clang curl pkg-config ninja-build cmake libgtk-3-dev libblkid-dev liblzma-dev unzipbuild cmake libgtk-3-dev libblkid-dev liblzma-dev unzip
flutter config --enable-linux-desktop
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.5.0-7.0.pre.182, on Ubuntu 20.04.3 LTS
    5.4.0-83-generic, locale ja_JP.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2020.3)
[✓] Android Studio
[✓] VS Code (version 1.59.1)
[✓] Connected device (4 available)
Kindle Fire 7で Flutter
Kindle Fire 7で Flutter

更にKindle Fire 7 で実行してみた。

コメントする