-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题:Logger.onLevelChanged #65
Comments
dev_dependencies: |
I resolved the same error by following the below link: |
Terminal Command: |
because the version of logging in your project is incompatible with the version used by json_model, you should specify the logging version. just do it follow this:
|
Failed to build json_model:json_model:
../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/build_runner_core-7.2.2/lib/src/logging/build_for_input_logger.dart:13:7: Error: The non-abstract class 'BuildForInputLogger' is missing implementations for th
ese members:
Try to either
class BuildForInputLogger implements Logger {
^^^^^^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/logging-1.2.0/lib/src/logger.dart:162:22: Context: 'Logger.onLevelChanged' is defined here.
Stream<Level?> get onLevelChanged {
^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/build_runner-2.1.11/lib/src/build_script_generate/bootstrap.dart:76:40: Error: Method not found: 'NullThrownError'.
final error = e[0] as Object? ?? NullThrownError();
The text was updated successfully, but these errors were encountered: