carp-dk / carp-dk/flutter-plugins
[activity_recognition_flutter 2.0.2] The plugin breaks Flutter Hot Reload on Android Studio
- Dominant language
- Dart
- Stars
- 608
- Forks
- 735
- Avg merge
- 1m
- Merged PRs (30d)
- 3
Description
### Device / Emulator and OS
Emulator:
- Device: Nexus One API 30
- OS: Android 11
My phone:
- Device: Samsung Galaxy A50
- OS: Android 10
### Describe the bug
Flutter Hot Reload not working when the plugin is installed.
First I tested inside my project, but then I created an empty project only with this plugin an the error is still there.
### To Reproduce
1. Create a new Flutter project (an empty app is enough to reproduce the error).
2. Install activity_recognition_flutter 2.0.2.
3. Run the app.
4. Try Flutter Hot Reload while running.
### Expected behavior
Flutter Hot Reload just applies changes to the app without waiting for the build and install.
### Actual behavior
No Hot Reload and Android Studio shows an error message:
"Hot Reload Error reloadSources: (105) Isolate must be runnable Isolate must be runnable before this request is made."
### Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Version 10.0.18363.1256], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio (version 4.1.0)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code, 64-bit edition (version 1.51.0)
[√] Connected device (2 available)
### Additional information
I found related issues outside the plugin but I couldn't find a solution.
I do not understand entirely, but it might be related to "having two isolates", that comes from the "service" this plugin uses.
See: https://github.com/flutter/flutter/issues/26953
Also: https://github.com/michael-cheung-thebus/foreground_service/issues/39
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.