gpt4 book ai didi

flutter pub run build_runner卡住了

转载 作者:行者123 更新时间:2023-12-03 02:41:52 50 4
gpt4 key购买 nike

我在运行

flutter pub run build_runner build --delete-conflicting-outputs
该命令不会出错,但是卡在第一个文件中:
WARNING] No actions completed for 15.0s, waiting on:
- auto_route_generator:autoRouteGenerator on lib/ui/shared/ui_helpers.dart
- auto_route_generator:autoRouteGenerator on lib/ui/views/settings/settings_datamodel.dart
- auto_route_generator:autoRouteGenerator on lib/ui/views/settings/settings.dart
- auto_route_generator:autoRouteGenerator on lib/ui/views/review_invitation/review_invitation_datamodel.dart
- auto_route_generator:autoRouteGenerator on lib/ui/views/review_invitation/review_invitation.dart
.. and 9 more

[INFO] 1m 17s elapsed, 1/15 actions completed.
以下是我的pubspec:
dependencies:
flutter:
sdk: flutter

# see below for explanation
stacked_services:
auto_route:
stacked: ^1.7.6
stacked_hooks: 0.1.1+3
flutter_hooks:
get_it:
injectable:
validators: ^2.0.0

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3

dev_dependencies:
flutter_test:
sdk: flutter

build_runner:
auto_route_generator:
injectable_generator:
虽然这是我的路由器的类。
import 'package:auto_route/auto_route_annotations.dart';
import 'package:myapp/ui/views/StartupView.dart';

@MaterialAutoRouter(
routes: <AutoRoute>[
MaterialRoute(page: StartupView, initial: true),
],
)
class $Router {}
有什么建议吗?

最佳答案

flutter pub upgrade解决了我的问题。

关于flutter pub run build_runner卡住了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63649873/

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