Closed DeToxer closed 6 months ago
I ran into the same problem. My solution was to force this in pubspec.yaml
without the "^"
flutter_reactive_ble: 5.2.0
Up tp now, I had it as "^5.2.0" with the "^" (which allowed never versions, such as the ill-fated 5.3.0).
Now, 5.3.0 is not allowed and things continue to work perfectly with 5.2.0.
Then, I deleted this directory:
~/.pub-cache/hosted/pub.dev/flutter_reactive_ble-5.3.0/
I'm sure the good folks in charge of this wonderful package will come up with 5.3.1
ASAP.
Thanks!
I have the same issue.
I'm afraid everyone who goes from 5.2.0
to 5.3.0
will have the same issue. See my solution above: Stay on 5.2.0
and disallow 5.3.0
.
Of course, as soon as 5.3.1
(or whatever) is released, change your pubspec.yaml
to whatever will be applicable then. For instance:
flutter_reactive_ble: ^5.3.1
I see that the pubspec.yaml
inside flutter_reactive_ble and reactive_ble_mobile still targets
reactive_ble_platform_interface: ^5.2.0
and reactive_ble_mobile: ^5.2.0
instead of 5.3.0.
That might be the issue.
Edit: I also see that the lock files are checked in where the dependencies (reactive_ble_mobile and reactive_ble_platform_interface) are pinned to 5.2.0
my bad will fix it and make realese soon
Describe the bug After upgrading the
flutter_reactive_ble
library from version5.2.0
to5.3.0,
the app fails to compile on both Android and iOS platforms. The compiler error indicates that the methodreadRssi
isn't defined for the classReactiveBlePlatform
. This issue has been tested and confirmed on two devices: an iPhone simulator (iOS version 17.0, iPhone 15 Pro Max) and an Android emulator (Pixel 7 Pro API 33). The problem persists despite attempts to clean the build environment usingflutter clean
andflutter pub cache clean --force
. Notably, this issue does not arise in a newly created Flutter project.Smartphone / tablet Device: iPhone 15 Pro Max/Pixel 7 Pro OS: iOS 17.0/Android 12 (SDK 33) Package version:
flutter_reactive_ble 5.3.0
Additional context The issue appears to be specifically associated with version 5.3.0 of the
flutter_reactive_ble library
. Reverting to version 5.2.0 or initiating a new Flutter project does not result in this compile-time error, suggesting that the problem is isolated to this particular version update.Android stack trace:
iOS stack tace:
Flutter doctor -v output log