-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as not planned
Labels
HacktoberfestIssues taking part in HacktoberfestIssues taking part in HacktoberfestbugSomething isn't workingSomething isn't workingmissing infoNot enough info or not following the issue templateNot enough info or not following the issue templatetriage
Description
Platform
Android12
Plugin
connectivity_plus
Version
2.3.6+!
Flutter SDK
3.0.2
Steps to reproduce
When the connectivity_plus plugin is unregistered, our online version of the app may crash on the Android 12 machine
Code Sample
No response
Logs
java.lang.IllegalArgumentException: NetworkCallback was not registered
android.net.ConnectivityManager.unregisterNetworkCallback(ConnectivityManager.java:4605)
dev.fluttercommunity.plus.connectivity.ConnectivityBroadcastReceiver.void onCancel(java.lang.Object)(ConnectivityBroadcastReceiver.java:66)
dev.fluttercommunity.plus.connectivity.ConnectivityPlugin.void teardownChannels()(ConnectivityPlugin.java:51)
dev.fluttercommunity.plus.connectivity.ConnectivityPlugin.void onDetachedFromEngine(io.flutter.embedding.engine.plugins.FlutterPlugin$FlutterPluginBinding)(ConnectivityPlugin.java:29)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.void remove(java.lang.Class)(FlutterEngineConnectionRegistry.java:273)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.void remove(java.util.Set)(FlutterEngineConnectionRegistry.java:283)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.void removeAll()(FlutterEngineConnectionRegistry.java:291)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.void destroy()(FlutterEngineConnectionRegistry.java:121)
io.flutter.embedding.engine.FlutterEngine.void destroy()(FlutterEngine.java:425)Flutter Doctor
Flutter 3.0.2 • channel unknown • unknown source
Framework • revision 2a0a1be03d (8 months ago) • 2021-12-29 22:34:19 +0800
Engine • revision f15f824b57
Tools • Dart 2.17.3 • DevTools 2.12.2
(base) lukehuangdeiMac:.rflutter_sdk lukehuang$ ./rflutter/bin/flutter doctor -v
[✓] Flutter (Channel unknown, 3.0.2-0.100.pre, on macOS 11.6 20G165 darwin-x64, locale zh-Hans-CN)
• Flutter version 3.0.2-0.100.pre at /Users/lukehuang/.rflutter_sdk/rflutter
• Upstream repository unknown
• Framework revision 2a0a1be03d (8 months ago), 2021-12-29 22:34:19 +0800
• Engine revision f15f824b57
• Dart version 2.17.3
• DevTools version 2.12.2
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/lukehuang/Library/Android/sdk
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[!] Xcode - develop for iOS and macOS (Xcode 12.5.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
✗ Flutter requires Xcode 13 or higher.
Download the latest version or update via the Mac App Store.
! CocoaPods 1.10.2 out of date (1.11.0 is recommended).
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin
usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin version 211.7798
[✓] IntelliJ IDEA Community Edition (version 2020.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin version 201.6668.124
[✓] VS Code (version 1.69.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.46.0
[✓] Connected device (3 available)
• IN2010 (mobile) • 61545440 • android-arm64 • Android 11 (API 30)
• macOS (desktop) • macos • darwin-x64 • macOS 11.6 20G165 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 104.0.5112.79
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 2 categories.Metadata
Metadata
Assignees
Labels
HacktoberfestIssues taking part in HacktoberfestIssues taking part in HacktoberfestbugSomething isn't workingSomething isn't workingmissing infoNot enough info or not following the issue templateNot enough info or not following the issue templatetriage