Closed5
Flutter の Hot Reload に失敗する
バージョンなど | |
---|---|
ProductName | macOS |
ProductVersion | 14.2.1 |
BuildVersion | 23C71 |
Flutter | 3.16.8 (Dart 3.2.5) |
起動デバイス | macOS(desktop) |
エラー情報
Failed to Hot Reload: DebugAdapterException: Flutter failed to create file at "/Users/******/Library/Containers/com.example.helloFlutter/Data/tmp/hello_flutterfUjK8o/hello_flutter/main.dart.incremental.dill".
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.
flutter doctor --verbose
[✓] Flutter (Channel stable, 3.16.8, on macOS 14.2.1 23C71 darwin-arm64, locale ja-JP)
• Flutter version 3.16.8 on channel stable at /Users/koyasaeki/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 67457e669f (7 days ago), 2024-01-16 16:22:29 -0800
• Engine revision 6e2ea58a5c
• Dart version 3.2.5
• DevTools version 2.28.5
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/koyasaeki/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C500b
• CocoaPods version 1.14.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
[✓] VS Code (version 1.85.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.80.0
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.2.1 23C71 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.234
[✓] Network resources
• All expected network resources are available.
• No issues found!
パーミッションの問題でファイルを作成できないと書いてあるので
フルディスクアクセスを許可してみる。
無事ホットリロードが効くようになった。
このスクラップは2024/01/23にクローズされました