0
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?

[Flutter] git clone した時にエラーが出たときの対処法

Last updated at Posted at 2023-03-14

1. プラグインをインストール

基本はこれでOK

$ flutter pub get

以下のようなエラーが出た場合は、2.へ進んでから、再度実行する

The current Dart SDK version is x.x.x.

Because プロジェクト名 requires SDK version >=y.y.y <z.z.z, version solving failed.

2. Flutter SDKを更新

(省略可)チャネルの確認

stableが推奨されているため

$ flutter channel

Flutter channels:
  master
  dev
  beta
* stable

チャネルの変更

$ flutter channel stable

SDKの更新

$ flutter upgrade

バージョン指定する場合

$ flutter version <バージョン>

参考

0
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
0
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?