当前位置:网站首页>Flutter: Unsupported value: false/true
Flutter: Unsupported value: false/true
2022-06-24 19:30:00 【一叶飘舟】
在使用FlutterBoost传参时,直接传递bool值时出现崩溃。
FlutterBoost.singleton.open(
'flutter://personnel_page',
urlParams: <String, dynamic>{
'isBd': i%2==0 ? true : false,
},
),崩溃日志如下:
Caused by: java.lang.IllegalArgumentException: Unsupported value: false
at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:278)
at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:275)
at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:275)
at io.flutter.plugin.common.StandardMethodCodec.encodeMethodCall(StandardMethodCodec.java:38)
at io.flutter.plugin.common.MethodChannel.invokeMethod(MethodChannel.java:99)
at com.idlefish.flutterboost.FlutterBoostPlugin.invokeMethod(FlutterBoostPlugin.java:138)
at com.idlefish.flutterboost.FlutterBoostPlugin.invokeMethodUnsafe(FlutterBoostPlugin.java:96)
at com.idlefish.flutterboost.ContainerRecord$MethodChannelProxy.invokeChannelUnsafe(ContainerRecord.java:292)
at com.idlefish.flutterboost.ContainerRecord$MethodChannelProxy.create(ContainerRecord.java:231)
at com.idlefish.flutterboost.ContainerRecord$MethodChannelProxy.access$100(ContainerRecord.java:226)
at com.idlefish.flutterboost.ContainerRecord.onCreate(ContainerRecord.java:106)
at com.idlefish.flutterboost.containers.FlutterActivityAndFragmentDelegate.onCreateView(FlutterActivityAndFragmentDelegate.java:163)
at com.idlefish.flutterboost.containers.BoostFlutterActivity.createFlutterView(BoostFlutterActivity.java:229)
at com.idlefish.flutterboost.containers.BoostFlutterActivity.onCreate(BoostFlutterActivity.java:149)
at com.xx.ss.SSFlutterActivity.onCreate(SSFlutterActivity.java:32)
at android.app.Activity.performCreate(Activity.java:8142)
at android.app.Activity.performCreate(Activity.java:8114)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1308)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3550)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3749)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2181)
......
原以为是FlutterBoost框架的bug,百度了一番,原来是低版本flutter的bug。
这个是因为StandardMessageCodec的boolean检查有问题导致Native像Flutter传参map里value有boolean的时候崩溃,commit已经merge到master了
https://github.com/flutter/engine/commit/13453596424988afa5eebafb5511b0bacbab19ae
高版本还没有验证...
边栏推荐
- Data link layer & some other protocols or technologies
- C语言-关键字1
- These map operations in guava have reduced my code by 50%
- Datakit agent realizes unified data aggregation in LAN
- socket(2)
- 传输层 udp && tcp
- 《各行业零代码企业应用案例集锦》正式发布
- Implementation of heap sort and quick sort principle
- Li Kou daily question - day 26 -496 Next larger element I
- 【吴恩达笔记】多变量线性回归
猜你喜欢

【吴恩达笔记】多变量线性回归

That is to say, "live broadcast" is launched! One stop live broadcast service with full link upgrade

Cannot find reference 'imread' in 'appears in pycharm__ init__. py‘

【论】Deep learning in the COVID-19 epidemic: A deep model for urban traffic revitalization index

socket(1)

(to be added) games101 job 7 improvement - knowledge you need to know to realize micro surface model

《各行业零代码企业应用案例集锦》正式发布

Several classes of manual transactions

【论】A deep-learning model for urban traffic flow prediction with traffic events mined from twitter

Practice of hierarchical management based on kubesphere
随机推荐
The leader of ERP software in printing industry
Implementation of heap sort and quick sort principle
Structured interview of state-owned enterprises and central enterprises employment of state-owned enterprises Modou Interactive Employment Service steward
基于kruskal的最小生成树
专科出身,2年进苏宁,5年跳阿里,论我是怎么快速晋升的?
Development trend and path of SaaS industry in China
01---两列波在相遇处发生干涉的条件
Application practice | massive data, second level analysis! Flink+doris build a real-time data warehouse scheme
将二维数组方阵顺时针旋转90°
Cannot find reference 'imread' in 'appears in pycharm__ init__. py‘
leetcode-201_ 2021_ 10_ seventeen
leetcode_1365
STL+树
02---纵波不可能产生的现象
Introduce the overall process of bootloader, PM, kernel and system startup
How to resolve the 35 year old crisis? Sharing of 20 years' technical experience of chief architect of Huawei cloud database
手动事务的几个类
leetcode1863_2021-10-14
Make tea and talk about heroes! Leaders of Fujian Provincial Development and Reform Commission and Fujian municipal business office visited Yurun Health Division for exchange and guidance
印刷行业的ERP软件的领头羊