当我运行我的应用程序时,我得到以下输出。
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/