Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
198 views
in Technique[技术] by (71.8m points)

dart:ui:1: Error: Not found: dart:ui. flutter/dart:

When I start a debugging session (pressing F5) I receive the following messages:

dart:ui:1: Error: Not found: dart:ui.
Exited (sigterm)

There is no indication as to where the problem occurred. Output from flutter doctor -v is:

[√] Flutter (Channel beta, v0.8.2, on Microsoft Windows [Version 6.1.7601], locale en-US)
    ? Flutter version 0.8.2 at C:Downloadsflutterflutter_windows_v0.5.1-betaflutter
    ? Framework revision 5ab9e70727 (2 weeks ago), 2018-09-07 12:33:05 -0700
    ? Engine revision 58a1894a1c
    ? Dart version 2.1.0-dev.3.1.flutter-760a9690c2

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    ? Android SDK at C:UsersgggustafsonAppDataLocalAndroidsdk
    ? Android NDK location not configured (optional; useful for native profiling support)
    ? Platform android-27, build-tools 27.0.3
    ? Java binary at: C:Program FilesAndroidAndroid Studiojreinjava
    ? Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    ? All Android licenses accepted.

[√] Android Studio (version 3.1)
    ? Android Studio at C:Program FilesAndroidAndroid Studio
    ? Flutter plugin version 26.0.1
    ? Dart plugin version 173.4700
    ? Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] VS Code, 64-bit edition (version 1.25.1)
    ? VS Code at C:Program FilesMicrosoft VS Code
    ? Flutter extension version 2.18.0

[√] Connected devices (1 available)
    ? SM G925V ? 06157df60c7a8e20 ? android-arm64 ? Android 7.0 (API 24)

? No issues found!

Any thoughts?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

When running the app, you will find 2 main.dart Choose the one with the flutter icon beside it enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...