简体   繁体   English

如何在运行 flutter 应用程序时解决 'dart:ui' 问题?

[英]How to solve 'dart:ui' problem while running flutter app?

Here is the result of flutter doctor -v command - 1:这是 flutter doctor -v 命令 - 1 的结果:

Another image- 2:另一张图片 - 2:

You can see the error in output section as it says to import 'dart:ui' as ui.您可以在输出部分看到错误,因为它表示将“dart:ui”导入为 ui。 I have tried it but still it's not working.:我试过了,但还是不行。:

I tried to add all the instructions shown in output section.我试图添加输出部分中显示的所有说明。 And still I face the same problem.我仍然面临同样的问题。 I'm stuck in this.我被困在这个。 So, I am humbly requesting to find the solution of this problem which can lead me to go further.所以,我谦虚地请求找到这个问题的解决方案,这可以让我走得更远。 Thanks谢谢

My guess is youre trying to run the project as dart file, not Flutter .我的猜测是您正在尝试将项目作为dart文件而不是Flutter运行。 You can check out this answer for solution您可以查看此答案以获取解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行 Flutter 应用程序时如何解决此问题? - How to solve this Problem while running a Flutter App? 如何解决 Not found: 'dart:ui' 在 Flutter 上运行集成测试时出错 - How to solve Not found: 'dart:ui' error while running integration tests on Flutter 集成测试时如何解决在 Flutter 中请求“dart.ui”的问题 - How can solve requesting "dart.ui" in Flutter while Integration Testing 我在flutter中运行第一个应用程序时遇到此错误,如何解决? - I face this error while running the first app in flutter , how to solve it? 运行 FLUTTER 应用程序时出现异常问题 - EXCEPTION PROBLEM WHILE RUNNING A FLUTTER APP 如何解决 flutter 应用程序中的网格视图问题? - How to solve the grid view problem in flutter app? 如何在运行 flutter pub get 时解决 git 克隆问题以获得依赖项 - How to solve problem of git cloning while running flutter pub get for a dependency 如何使用 Dart 解决 Flutter 应用程序中的路由错误? - How do i solve route error in Flutter app with Dart? 在 dart 中运行自定义异常时如何解决编译器错误? - How to solve error by compiler while running custom exception in dart? 如何解决 [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] 未处理的异常 - How to solve [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM