flutter编译
131 2024-10-25 11:12
flutter run -d windows -v
flutter build windows --release
flutter clean
flutter pub get
错误:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: Please set "hierarchicalLoggingEnabled" to true if you want to change the level on a non-root logger.
答案:
这个错误信息表明你正在尝试更改非根记录器的日志级别,但是没有启用层次化日志记录。在Flutter中,如果你想对特定记录器进行更细粒度的日志级别控制,你需要将hierarchicalLoggingEnabled
设置为true
。
全部评论