Build fails due to missing Logger import in app_kit_modal_impl.dart
Closed this issue ยท 6 comments
Describe the bug
File app_kit_modal_impl.dart
uses the Logger
class, but the Logger
type is not imported, leading to a compilation error.
Expected behavior: The build should succeed
Actual behavior: The build fails with an error indicating that the Logger
type cannot be found.
To Reproduce
Steps to reproduce the behavior:
- Place
reown_appkit: ^1.0.1
in pubspec.yaml import 'package:reown_appkit/reown_appkit.dart';
somewhere- Run the build.
Additional context
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
/C:/Users/vitalii/AppData/Local/Pub/Cache/hosted/pub.dev/reown_appkit-1.0.1/lib/modal/appkit_modal_impl.dart:116:3: Error: Type 'Logger' not found.
Logger get _logger => _appKit.core.logger;
^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'E:\SDKs\flutter\bin\flutter.bat'' finished with non-zero exit value 1
BUILD FAILED in 8s
Error: Gradle task assembleDebug failed with exit code 1
Seems like reown_appkit: ^1.1.0-beta02 works fine
Yes, it's fixed in latest beta, which should be promoted to stable soon
Turns out that allowing pub to figure out the version to be installed auto causes this error. Like if you just run flutter pub add reown_appkit
, you get this error when you build flutter.
@quetool when it will be promoted to stable? thanks
Turns out that allowing pub to figure out the version to be installed auto causes this error. Like if you just run
flutter pub add reown_appkit
, you get this error when you build flutter.
@obumnwabude this is because flutter pub
installs stable versions and the issue is fixed in beta.
@ismail-mufin hopefully this week!
Hello, version 1.2.0 is out in stable!