1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Flutter】実機で動作確認やテストが出来るように設定する

Last updated at Posted at 2024-01-11

環境

  • Macbook Air M2
  • Galaxy S22 SCG13

作業

まずは、デベロッパー(開発者)モードになる必要があります。
「設定」→「端末情報」→「ソフトウェア情報」→「ビルド番号」(この項目を7回クリック)

機種によって操作が若干変わる為、詳しくは機種のマニュアルなどをご参照下さい。

1.png

デベロッパーモードが有効になったら、「開発者オプション」と言う項目が追加されます。
2.png

作業PCと実機をUSBケーブルで接続しデバッグの許可をします。
Mac にも接続の許可をしていいか確認のポップアップが表示されるので合わせて許可を押下。

3.png
4.png

デバイスが選択できるようになっている事が確認できます。

% flutter devices
Found 3 connected devices:
  SCG13 (mobile)   R5CW42EY13V  android-arm64   Android 13 (API 33)
  macOS (desktop)  macos        darwin-arm64    macOS 14.0 23A344 darwin-arm64
  Chrome (web)     chrome       web-javascript  Google Chrome 120.0.6099.199

%

5.png

デバッグの実行をすると、スマートフォンに Flutter プロジェクトのアプリがインストールされ、自動的にアプリが立ち上がります。
6.png
7.jpg

【おまけ】インストールされた Flutter プロジェクトのアプリ
8.jpg

以上。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?