Open zfha opened 3 years ago
错误如下: Flutter crash report. Please report a bug at https://github.com/flutter/flutter/issues.
flutter run
StateError: Bad state: No element
#0 ListMixin.firstWhere (dart:collection/list.dart:167:5) #1 DartDevelopmentService.startDartDevelopmentService (package:flutter_tools/src/base/dds.dart:63:32) <asynchronous suspension> #2 FlutterDevice.connect.<anonymous closure> (package:flutter_tools/src/resident_runner.dart:249:11) <asynchronous suspension>
[✓] Flutter (Channel beta, 1.25.0-8.2.pre, on macOS 11.1 20C69 darwin-x64, locale zh-Hans) • Flutter version 1.25.0-8.2.pre at /Applications/flutter • Framework revision b0a2299859 (2 weeks ago), 2021-01-05 12:34:13 -0800 • Engine revision 92ae191c17 • Dart version 2.12.0 (build 2.12.0-133.2.beta) • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Users/qiujiayao/Library/Android/sdk • Platform android-30, build-tools 30.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 12.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.3, Build version 12C33 • CocoaPods version 1.10.0 [✓] Android Studio (version 4.1) • 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 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.52.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.18.1 [✓] Connected device (1 available) • 宋传明的iPhone (mobile) • 00008030-000478C40E85802E • ios • iOS 14.3 • No issues found!
错误如下: Flutter crash report. Please report a bug at https://github.com/flutter/flutter/issues.
command
flutter run
exception
StateError: Bad state: No element
flutter doctor