flutter - java.lang.IllegalArgumentException:不支持的值:Bundle[mParcelledData.dataSize=100]
问题描述
当我单击下面带有此错误的通知消息时,我的应用程序关闭,找不到类文件 StandardMessageCodec.java 的位置。
I/BufferQueueProducer(18207): [SurfaceTexture-0-18207-0](this:0x716addc000,id:0,api:1,p:543,c:18207) queueBuffer: slot 1 is dropped, handle=0x7165997640
D/Surface (18207): Surface::connect(this=0x7165a41000,api=1)
D/AndroidRuntime(18207): Shutting down VM
I/BufferQueueProducer(18207): [SurfaceTexture-0-18207-0](this:0x716addc000,id:0,api:1,p:543,c:18207) queueBuffer: slot 2 is dropped, handle=0x7165999580
E/AndroidRuntime(18207): FATAL EXCEPTION: main
E/AndroidRuntime(18207): Process: com.vilotech.artisansreg, PID: 18207
E/AndroidRuntime(18207): java.lang.IllegalArgumentException: Unsupported value: Bundle[mParcelledData.dataSize=100]
E/AndroidRuntime(18207): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:276)
E/AndroidRuntime(18207): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:273)
E/AndroidRuntime(18207): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:273)
E/AndroidRuntime(18207): at io.flutter.plugin.common.StandardMethodCodec.encodeMethodCall(StandardMethodCodec.java:38)
E/AndroidRuntime(18207): at io.flutter.plugin.common.MethodChannel.invokeMethod(MethodChannel.java:99)
E/AndroidRuntime(18207): at io.flutter.plugin.common.MethodChannel.invokeMethod(MethodChannel.java:83)
E/AndroidRuntime(18207): at io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin.sendMessageFromIntent(FirebaseMessagingPlugin.java:324)
E/AndroidRuntime(18207): at io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin.onNewIntent(FirebaseMessagingPlugin.java:293)
E/AndroidRuntime(18207): at io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onNewIntent(FlutterEngineConnectionRegistry.java:763)
E/AndroidRuntime(18207): at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onNewIntent(FlutterEngineConnectionRegistry.java:439)
E/AndroidRuntime(18207): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onNewIntent(FlutterActivityAndFragmentDelegate.java:647)
E/AndroidRuntime(18207): at io.flutter.embedding.android.FlutterActivity.onNewIntent(FlutterActivity.java:625)
E/AndroidRuntime(18207): at android.app.Activity.performNewIntent(Activity.java:7831)
E/AndroidRuntime(18207): at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1406)
E/AndroidRuntime(18207): at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1419)
E/AndroidRuntime(18207): at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:3656)
E/AndroidRuntime(18207): at android.app.ActivityThread.handleNewIntent(ActivityThread.java:3668)
E/AndroidRuntime(18207): at android.app.servertransaction.NewIntentItem.execute(NewIntentItem.java:53)
E/AndroidRuntime(18207): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:140)
E/AndroidRuntime(18207): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
E/AndroidRuntime(18207): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2126)
E/AndroidRuntime(18207): at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime(18207): at android.os.Looper.loop(Looper.java:264)
E/AndroidRuntime(18207): at android.app.ActivityThread.main(ActivityThread.java:7684)
E/AndroidRuntime(18207): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(18207): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/AndroidRuntime(18207): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
D/mali_winsys(18207): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
I/BufferQueueProducer(18207): [SurfaceTexture-0-18207-0](this:0x716addc000,id:0,api:1,p:543,c:18207) queueBuffer: slot 1 is dropped, handle=0x7165997640
I/Process (18207): Sending signal. PID: 18207 SIG: 9
Lost connection to device.
我如何在 io.flutter.plugin.common.StandardMessageCodec.writeValue 找到 StandardMessageCodec.java
解决方案
推荐阅读
- excel - 隐藏包含错误宏的列
- gnuplot - GNUPLOT 的数据文件中的最后一列是否有任何保留的变量名称?
- teradata - sql动态获取数据直到每个上周日
- apache - 为平均堆栈应用程序配置 .htaccess 文件
- tree - 非自平衡的二叉搜索树有什么用吗?
- java - 找不到类异常 - org.apache.http.client.methods.HttpRequestBase
- asp.net-mvc - Restsharp不返回任何数据获取请求和发布请求
- terraform - Terraform 从空状态刷新?
- java - 卸载应用程序时执行操作
- python - Numba - nopython 模式是否支持元组列表?