我刚刚通过全新安装将Mac更新到Mojave,所以我重新安装了所有应用程序,包括Android Studio和Flutter,这是我第一次遵循Flutter安装指南。我在重新打开以前的项目时遇到此错误,但是如果我创建一个新的Flutter项目,则没有问题,我试图重新制作所有复制代码的项目,但我遇到了相同的错误:
Unhandled exception:
Unsupported operation: Cannot extract a file path from a package URI
#0 _SimpleUri.toFilePath (dart:core/uri.dart:4589:7)
#1 _writeDepfile (package:vm/frontend_server.dart:662:32)
<asynchronous suspension>
#2 FrontendCompiler.compile (package:vm/frontend_server.dart:367:15)
<asynchronous suspension>
#3 _FlutterFrontendCompiler.compile (package:frontend_server/server.dart:31:22)
<asynchronous suspension>
#4 starter (package:frontend_server/server.dart:133:27)
<asynchronous suspension>
#5 main (file:///b/build/slave/Mac_Engine/build/src/flutter/frontend_server/bin/starter.dart:8:30)
<asynchronous suspension>
#6 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:287:32)
#7 _RawReceivePortImpl._handleMessage
(dart:isolate/runtime/libisolate_patch.dart:171:12)
Compiler failed on /Users/rodhcraft/Documents/LotusXD/Codes/para_llevar/lib/main.dart
Error launching application on iPhone XS Max.