如何解决这个错误? 'flutter shared_preferences error'
how to fix this error ? 'flutter shared_preferences error'
E/MethodChannel#plugins.flutter.io/shared_preferences(31367): 处理方法调用失败
E/MethodChannel#plugins.flutter.io/shared_preferences(31367): java.util.concurrent.RejectedExecutionException: 任务 io.flutter.plugins.sharedpreferences.MethodCallHandlerImpl$1@c4b4f58 被 java.util.concurrent.ThreadPoolExecutor@b56a9c2[运行,池大小 = 1,活动线程 = 1,排队任务 = 0,完成任务 = 5]
E/MethodChannel#plugins.flutter.io/shared_preferences(31367): 在 java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2086)
我在 2.0.3 版本时遇到过这个问题,但在今天发布的 2.0.4 版本中已解决
E/MethodChannel#plugins.flutter.io/shared_preferences(31367): 处理方法调用失败 E/MethodChannel#plugins.flutter.io/shared_preferences(31367): java.util.concurrent.RejectedExecutionException: 任务 io.flutter.plugins.sharedpreferences.MethodCallHandlerImpl$1@c4b4f58 被 java.util.concurrent.ThreadPoolExecutor@b56a9c2[运行,池大小 = 1,活动线程 = 1,排队任务 = 0,完成任务 = 5] E/MethodChannel#plugins.flutter.io/shared_preferences(31367): 在 java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2086)
我在 2.0.3 版本时遇到过这个问题,但在今天发布的 2.0.4 版本中已解决