当前位置:   article > 正文

Flutter开发:运行flutter upgrade命令报错Exception:Flutter failed to create a directory at…解决方法_throwtoolexit (package:flutter_tools/src/base/comm

throwtoolexit (package:flutter_tools/src/base/common.dart:10:3)

前言

Flutter开发中,经常会遇到因为更新而引起的报错,而且最近两年Flutter不断完善和更新的速度越来越快,这就需要Flutter相关的开发者时刻保持不断学习的心态,来应对在Flutter开发中遇到的各种突发情况。本篇博文就来分享一下关于Flutter开发中执行flutter upgrade命令之后报错Exception:Flutter failed to create a directory at…的解决方法,方便后期查阅使用。

报错提示

在终端中运行flutter upgrade命令之后,提示如下报错信息:

  1. adminBook-Pro ~ % flutter upgrade
  2. Unhandled exception:
  3. Exception: Flutter failed to create a directory at "/Users/admin/.config/
  4. flutter". The flutter tool cannot access the file or directory.
  5. Please ensure that the SDK and/or project is installed in a location that has
  6. read/write permissions for the current user.
  7. #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
  8. #1 _throwFileSystemException (package:flutter_tools/src/base/
  9. error_handling_io.dart:749:3)
  10. #2 _handlePosixException (package:flutter_tools/src/base/
  11. error_handling_io.dart:697:3)
  12. #3 _runSync
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/143537
推荐阅读
相关标签
  

闽ICP备14008679号