android - Flutter应用启动时的"Invalid argument false with type bool."

标签 android flutter dart

当我运行我的应用程序时,我得到以下输出。

Launching lib/main.dart on PRO 6 in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
Waiting for PRO 6 to report its views...
Debug service listening on ws://127.0.0.1:35519/lTvS-OPVNiM=/ws
Syncing files to device PRO 6...
I/flutter (19084): Directory: '/data/user/0/com.kinton.application/app_flutter'
I/flutter (19084): Directory: '/data/user/0/com.kinton.application/app_flutter'
I/flutter (19084): Directory: '/data/user/0/com.kinton.application/app_flutter'
I/flutter (19084): Directory: '/data/user/0/com.kinton.application/app_flutter'
I/flutter (19084): Directory: '/data/user/0/com.kinton.application/app_flutter'
I/flutter (19084): *** WARNING ***
I/flutter (19084): 
I/flutter (19084): Invalid argument false with type bool.
I/flutter (19084): Only num, String and Uint8List are supported. See https://github.com/tekartik/sqflite_common/blob/master/sqflite_common/doc/supported_types.md for details
I/flutter (19084): 
I/flutter (19084): This will throw an exception in the future. For now it is displayed once per type.
I/flutter (19084): 
I/flutter (19084):     
D/ContentCapture(19084): updateCollectionAppInfoImpl time=6
这是 flutter 医生所说的。
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.5, on Linux, locale ru_RU.UTF-8)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Android Studio (version 4.0)
[✓] Connected device (2 available)

• No issues found!
我需要对此做些什么吗?谢谢你。

最佳答案

这个问题出在你的 SQL 表上,而不是你的 flutter 代码。这很可能发生,因为您在表中使用 false 而不是 bool 类型。我可能错了,因为我不使用 sqflite,但如果有帮助,请先检查一下

关于android - Flutter应用启动时的"Invalid argument false with type bool.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65452267/

相关文章:

java - 如何在android中获取物理键盘布局

java - 同步内 Thread.notify() 上的 IllegalMonitorStateException

java - 将函数作为 Android Intent 的额外参数传递

flutter - 在 flutter 中具有格式化功能的富文本编辑器应用程序

timer - 在Flutter中,什么情况下使用timer.cancel()而不是timer = null?

flutter - Listview 不使用 TextField 动态更新

android - LinkMovementMethod 僵硬滚动

flutter - 基于AndroidViews实现的WebView(webview_flutter)如何截图?

flutter - 需要更新对象而不是添加

webview - 如何在 Dart google chrome 应用程序中将消息发布到 webview (securityError)