gpt4 book ai didi

flutter - 坏状态 : Unexpected diagnostics: after flutter upgrade to 1. 20.1

转载 作者:行者123 更新时间:2023-12-03 02:48:39 29 4
gpt4 key购买 nike

问题是什么?

xxx@xxx-Inspiron-14-3467:~/xxx$ flutter pub run build_runner build[INFO] Generating build script...
[INFO] Generating build script completed, took 406ms

[WARNING] Deleted previous snapshot due to missing asset graph.
[INFO] Creating build script snapshot......
[INFO] Creating build script snapshot... completed, took 14.6s

[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 773ms

[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms

[INFO] Running build...
[INFO] Generating SDK summary...
[SEVERE] chopper_generator:chopper_generator on test/widget_test.dart:

Bad state: Unexpected diagnostics:
/home/xxx/Desktop/flutter_linux_1.20.1-stable/flutter/bin/cache/dart-sdk/lib/core/uri.dart:3259:39 - Expected an identifier.
[SEVERE] chopper_generator:chopper_generator on test/widget_test.dart:

Bad state: Unexpected diagnostics:
/home/xxx/Desktop/flutter_linux_1.20.1-stable/flutter/bin/cache/dart-sdk/lib/core/uri.dart:3259:39 - Expected an identifier.
[INFO] 1.6s elapsed, 1/17 actions completed.
[INFO] 2.7s elapsed, 1/17 actions completed.
[INFO] 3.8s elapsed, 1/17 actions completed.
[INFO] 4.9s elapsed, 1/17 actions completed.
[INFO] 6.0s elapsed, 1/17 actions completed.
[INFO] 7.1s elapsed, 1/17 actions completed.
[INFO] 8.2s elapsed, 1/17 actions completed.
[INFO] 9.3s elapsed, 1/17 actions completed.
[INFO] 10.4s elapsed, 1/17 actions completed.
[INFO] 11.5s elapsed, 1/17 actions completed.
[INFO] 12.6s elapsed, 1/17 actions completed.
[INFO] 13.7s elapsed, 1/17 actions completed.
[INFO] 14.8s elapsed, 1/17 actions completed.
[WARNING] No actions completed for 15.1s, waiting on:
- chopper_generator:chopper_generator on lib/repository/model/radio_model.dart
- chopper_generator:chopper_generator on lib/repository/model/xxx.dart
- chopper_generator:chopper_generator on lib/repository/model/time.dart
- chopper_generator:chopper_generator on lib/repository/model/assign_to.dart
- chopper_generator:chopper_generator on lib/repository/model/defect_cases_count.dart
.. and 11 more

最佳答案

花了三个多小时后,终于我设法解决了。
升级到flutter 1.20.1及以上版本的 friend ,请务必在pubspec.yaml中添加这一行.

dependency_overrides:
analyzer: '0.39.14'

关于flutter - 坏状态 : Unexpected diagnostics: after flutter upgrade to 1. 20.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63373620/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com