大佬教程收集整理的这篇文章主要介绍了出现 Flutter 应用登录异常。平台异常错误,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个 Flutter 应用程序,但每次登录时都会出现异常错误,我必须按 f5 以确保该过程完成。这是错误
Exception has occurred.
PlatformException (PlatformException(error,Task io.Flutter.plugins.sharedpreferences.MethodCallHandlerImpl$1@f33e5c6 rejected from java.util.concurrent.ThreadPoolExecutor@63f5987[Running,pool size = 1,active threads = 1,queued tasks = 0,completed tasks = 0],null,java.util.concurrent.RejectedExecutionException: Task io.Flutter.plugins.sharedpreferences.MethodCallHandlerImpl$1@f33e5c6 rejected from java.util.concurrent.ThreadPoolExecutor@63f5987[Running,completed tasks = 0]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2085)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:848)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1394)
at io.Flutter.plugins.sharedpreferences.MethodCallHandlerImpl.commitAsync(MethodCallHandlerImpl.java:137)
at io.Flutter.plugins.sharedpreferences.MethodCallHandlerImpl.onMethodCall(MethodCallHandlerImpl.java:96)
at io.Flutter.plugin.common.MethodChAnnel$IncomingMethodCallHandler.onmessage(MethodChAnnel.java:233)
at io.Flutter.embedding.ENGIne.dart.DartMessenger.handlemessageFromDart(DartMessenger.java:85)
at io.Flutter.embedding.ENGIne.FlutterJNI.handlePlatformmessage(FlutterJNI.java:818)
at androID.os.messageQueue.nativePollOnce(Native Method)
at androID.os.messageQueue.next(messageQueue.java:326)
at androID.os.Looper.loop(Looper.java:165)
at androID.app.ActivityThread.main(ActivityThread.java:6820)
at java.lang.reflect.Method.invoke(Native Method)
at com.androID.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:922)
))
似乎该错误已在 shared_preferences 2.0.4 中修复(至少对我来说是有效的)
,你应该降级到
shared_preferences: 2.0.1
不是
shared_preferences: ^2.0.1
如果您使用的是测试版或使用稳定版
shared_preferences: ^0.5.12+4
以上是大佬教程为你收集整理的出现 Flutter 应用登录异常。平台异常错误全部内容,希望文章能够帮你解决出现 Flutter 应用登录异常。平台异常错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。