Flutter-Web:调试网络的提示/工具?
让我清楚地了解我为什么会遇到此错误,Web没有文件系统,因此我不能使用getapplictionsupportDocumentsDirectory()
。我不是,但显然是一个插件。
这只是一个示例错误,我并不是真的要求帮助解决这个确切的一个。
有时,像这里一样, Android Studio绝对没有帮助。堆栈跟踪我的任何文件都没有。 Chrome的开发人员日志是相同的,但是堆栈跟踪并没有那么深。
Error: MissingPluginException(No implementation found for method getApplicationSupportDirectory on channel plugins.flutter.io/path_provider)
at Object.throw_ [as throw] (http://localhost:12684/dart_sdk.js:5067:11)
at MethodChannel._invokeMethod (http://localhost:12684/packages/flutter/src/services/restoration.dart.lib.js:1560:21)
at _invokeMethod.next (<anonymous>)
at http://localhost:12684/dart_sdk.js:40571:33
at _RootZone.runUnary (http://localhost:12684/dart_sdk.js:40441:59)
at _FutureListener.thenAwait.handleValue (http://localhost:12684/dart_sdk.js:35363:29)
at handleValueCallback (http://localhost:12684/dart_sdk.js:35931:49)
at Function._propagateToListeners (http://localhost:12684/dart_sdk.js:35969:17)
at _Future.new.[_completeWithValue] (http://localhost:12684/dart_sdk.js:35817:23)
at async._AsyncCallbackEntry.new.callback (http://localhost:12684/dart_sdk.js:35838:35)
at Object._microtaskLoop (http://localhost:12684/dart_sdk.js:40708:13)
at _startMicrotaskLoop (http://localhost:12684/dart_sdk.js:40714:13)
at http://localhost:12684/dart_sdk.js:36191:9
我已经遇到了几次遇到这个问题,在该问题中,堆栈跟踪对于调试问题并不有用。
是否有任何工具/技巧可以帮助您进行此帮助?
Let me clear that I understand why I'm getting this error, the web doesn't have a file system, so I can't use getApplictionSupportDocumentsDirectory()
. I'm not, but apparently some plugin is.
This is only an example error, I'm not really asking for help resolving this exact one.
Sometimes, like here, the error in Android Studio is absolutely not helpful. None of the stack trace references any of my files. Chrome's developer log is identical, but the stack trace doesn't go as deep.
Error: MissingPluginException(No implementation found for method getApplicationSupportDirectory on channel plugins.flutter.io/path_provider)
at Object.throw_ [as throw] (http://localhost:12684/dart_sdk.js:5067:11)
at MethodChannel._invokeMethod (http://localhost:12684/packages/flutter/src/services/restoration.dart.lib.js:1560:21)
at _invokeMethod.next (<anonymous>)
at http://localhost:12684/dart_sdk.js:40571:33
at _RootZone.runUnary (http://localhost:12684/dart_sdk.js:40441:59)
at _FutureListener.thenAwait.handleValue (http://localhost:12684/dart_sdk.js:35363:29)
at handleValueCallback (http://localhost:12684/dart_sdk.js:35931:49)
at Function._propagateToListeners (http://localhost:12684/dart_sdk.js:35969:17)
at _Future.new.[_completeWithValue] (http://localhost:12684/dart_sdk.js:35817:23)
at async._AsyncCallbackEntry.new.callback (http://localhost:12684/dart_sdk.js:35838:35)
at Object._microtaskLoop (http://localhost:12684/dart_sdk.js:40708:13)
at _startMicrotaskLoop (http://localhost:12684/dart_sdk.js:40714:13)
at http://localhost:12684/dart_sdk.js:36191:9
I've run into this issue a few times, where the stack trace isn't useful for debugging the problem.
Are there any tools/tips available to help with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论