Everything works fine in debug mode. when we build the apk it will not scan for devices.
This is the permissions I used are below.
I have the same problem
here is the log of error that happens on scan
2021-02-24 02:49:15.840 1761-2088/? I/flutter: Error starting scan.
2021-02-24 02:49:15.840 1761-2088/? I/flutter: PlatformException(startScan, Field androidScanMode_ for b.e.a.s0 not found. Known fields are [private int b.e.a.s0.g, private b.d.d.b0$i b.e.a.s0.h, private boolean b.e.a.s0.i, private static final b.e.a.s0 b.e.a.s0.j, private static volatile b.d.d.a1 b.e.a.s0.k], java.lang.RuntimeException: Field androidScanMode_ for b.e.a.s0 not found. Known fields are [private int b.e.a.s0.g, private b.d.d.b0$i b.e.a.s0.h, private boolean b.e.a.s0.i, private static final b.e.a.s0 b.e.a.s0.j, private static volatile b.d.d.a1 b.e.a.s0.k]
at b.d.d.v0.a(Unknown Source:72)
at b.d.d.v0.a(Unknown Source:715)
at b.d.d.v0.a(Unknown Source:12)
at b.d.d.k0.a(Unknown Source:60)
at b.d.d.k0.a(Unknown Source:49)
at b.d.d.d1.a(Unknown Source:17)
at b.d.d.d1.a(Unknown Source:4)
at b.d.d.z$a.a(Unknown Source:9)
at b.d.d.z$a.a(Unknown Source:4)
at b.d.d.z$a.a(Unknown Source:0)
at b.d.d.a$a.a(Unknown Source:2)
at b.e.a.b.b(Unknown Source:10)
at b.e.a.b.a(Unknown Source:1414)
at f.a.c.a.j$a.a(Unknown Source:17)
at io.flutter.e
how you fix it. bro
ok here is solution just add in android/app/build.gradle
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so flutter run
--release works.
signingConfig signingConfigs.debug
shrinkResources false
minifyEnabled false
}
}
shrinkResources false
minifyEnabled false
On Wed, Feb 24, 2021 at 1:35 PM yang6626 notifications@github.com wrote:
how you fix it. bro
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pauldemarco/flutter_blue/issues/768#issuecomment-784879224,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARTXY2UIJGY2F4FVUTK2VC3TASXM5ANCNFSM4WUUC4PQ
.
Worked for me!
Thank you for sharing.
Worked for me too
Thanks alot
See #772
In the proguard-rules file, add a line:
-keep class com.pauldemarco.flutter_blue.** { *; }
That worked
thank u it's worked
On Wed, Mar 24, 2021 at 10:29 AM Shannon @.*> wrote:
That worked
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pauldemarco/flutter_blue/issues/768#issuecomment-805497352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARTXY2TSY6EDND4C44COJKLTFFWUHANCNFSM4WUUC4PQ
.
Most helpful comment
ok here is solution just add in android/app/build.gradle
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so
flutter run --releaseworks.signingConfig signingConfigs.debug
shrinkResources false
minifyEnabled false
}
}
On Wed, Feb 24, 2021 at 1:35 PM yang6626 notifications@github.com wrote: