LoginSignup
1
0

More than 1 year has passed since last update.

既存Flutterプロジェクトにデスクトップ(Windows)サポート追加時 "No option specified for the output directory" エラーの対処法

Posted at

前提

flutter doctor 診断の通過。
言い換えると、必要なVisual Stodioのコンポーネントが揃っていること。

エラー

> cd path/to/flutter
> flutter create --platform=windows

No option specified for the output directory.
Create a new Flutter project.
(以下省略)

対処法:createコマンドの"出力パス"パラメータを追加

  > cd path/to/flutter
- > flutter create --platform=windows
+ > flutter create . --platform=windows

※「.」:カレントパス(Flutterプロジェクトのパス)

これでWindows版のビルドと起動ができるようになった。
めでたしめでたし(≧∇≦)b

その他

必要かは分からないが、試行錯誤している時、下記のコマンドも1回実行した。

flutter config --enable-windows-desktop

出処:https://protocoderspoint.com/how-to-add-create-desktop-windows-support-for-existing-flutter-project/

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