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?

More than 3 years have passed since last update.

[Flutter]Unhandled exception: FileSystemExceptionでflutter upgradeが通らなくなった

Last updated at Posted at 2020-11-07

flutter upgradeが何故か通らない

Flutterを使用したAndroidアプリ開発の勉強中、急にflutter upgradeのコマンドが通らなくなる現象に遭遇しました。
エラーログ的には「Unhandled exception: FFileSystemException: writeFrom failed」との事。
特にプロジェクトフォルダのアクセス権限が変わったり、ロックされたままになるような事はしていませんでしたし、flutter cleanなどのコマンドを試したりしてみても問題は解消しませんでした。

結局詳しい原因は分からないままですが、以下の手順でflutter upgrade自体はひとまず通る様に出来たのでメモとして残しておきます。
(もし原因が分かったら追記をします)

 問題解消手順

# FlutterSDKの配信チャネルを最新版(master)に変更してupgradeする
C:\xxx> flutter channel master
C:\xxx> flutter upgrade

# FlutterSDKの配信チャネルを安定版(stable)に変更して再度upgradeする
C:\xxx> flutter channel stable
C:\xxx> flutter upgrade

参考記事

flutter crash: FileSystemException: FileSystemException: writeFrom failed, path = 'C:\Users..\flutter\version' (OS Error: Access is denied. , errno = 5) · Issue #42072 · flutter/flutter

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?