flutter - 构建发布 APK 后,flutter_blue 未检测到蓝牙设备
问题描述
flutter_blue: ^0.7.2
flutter_blue 在调试模式下工作正常,并检测和扫描可用的蓝牙设备,但在构建发布 APK 后未检测到蓝牙设备
说Bluetooth device not found
解决方案
它可能在发布模式下捕获错误,请使用此命令获取 apk:
flutter clean
接着
flutter build apk --no-shrink
您也可以使用此命令flutter run release
在发布模式下进行调试
推荐阅读
- python - 类型错误:在 django 2.0 中的 include() 情况下,View 必须是可调用的或列表/元组
- javascript - 使用范围滑块更改 div 的高度
- angular - 实现秒表的最有效方法?
- python - 使用循环在 plotly 中定义多个 y 轴
- webpack - 如果我在页面中使用脚本标签将 Vue 和 Vue Router 作为全局变量包含在内,如何使用 webpack
- asp.net-core - Asp.net Core - 如何从 javascript 中为 ViewComponent 调用异步?
- amazon-web-services - 如何增加 Elastic Beanstalk 中的 client_max_body_size
- ios - 每小时运行一次 OAuth URLRequest?- 斯威夫特
- amazon-web-services - 我可以用 .aws/credentials 中的 IAM 角色替换 aws 密钥以供 boto3 使用吗?
- scala - Scala compiler infers overly specific type with complex type parameter