logger_flutter
logger_flutter copied to clipboard
Build error with LogConsole.open in logging: ^0.11.4 logger_flutter: ^0.7.1
Followed instructions:
Shake the phone or call LogConsole.open(context) from anywhere to show an on device console `
Got an error
error: The method 'open' isn't defined for the type 'LogConsole'. (undefined_method at [aip] lib/welcome.dart:101)
Code:
PlatformButton(
child: PlatformText("Show log"),
onPressed: () => LogConsole.open(context),
),
Using Android Emulator on Mac OS. Android Studio v4.1.1
pubspec:
logging: ^0.11.4
logger_flutter: ^0.7.1
flutter:
$ flutter doctor -v
[✓] Flutter (Channel stable, 1.22.4, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-US)
• Flutter version 1.22.4 at /Users/agautam/tools/flutter
• Framework revision 1aafb3a8b9 (6 days ago), 2020-11-13 09:59:28 -0800
• Engine revision 2c956a31c0
• Dart version 2.10.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/agautam/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/agautam/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.0
[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] Connected device (2 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• iPhone 11 Pro (mobile) • 70B5851E-D6FE-4D5F-8703-D9AEB22DE51E • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
Same problem here
pubspec.yaml
logger_flutter: git: url: https://github.com/ewertonrp/logger_flutter.git