Я запустил тот же код в другом проекте и пытаюсь адаптировать код для этого текущего проекта. Весь текущий код обобщен в захвате пользовательских данных и входе в систему с помощью firebase. Я пробовал обновление flutter, обновление flutter pub, flutter clean, переустановку пакетов, идею перезапуска, но ничего не работает.
Журналы:
E/FlutterFcmService( 4874): Fatal: failed to find callback
E/Fabric ( 4874): Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/packageName/settings
E/Answers ( 4874): Failed to retrieve settings
W/CrashlyticsCore( 4874): Received null settings, skipping report submission!
D/EGL_emulation( 4874): eglMakeCurrent: 0xe693dae0: ver 3 1 (tinfo 0xd665d930)
E/flutter ( 4874): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
E/flutter ( 4874):
E/flutter ( 4874): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method setCurrentScreen on channel plugins.flutter.io/firebase_analytics)
E/flutter ( 4874): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:7)
E/flutter ( 4874): <asynchronous suspension>
E/flutter ( 4874): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:334:12)
E/flutter ( 4874): #2 MethodChannelFirebaseAnalytics.setCurrentScreen (package:firebase_analytics_platform_interface/method_channel_firebase_analytics.dart:46:21)
E/flutter ( 4874): #3 FirebaseAnalytics.setCurrentScreen (package:firebase_analytics/firebase_analytics.dart:90:29)
E/flutter ( 4874): #4 FirebaseAnalyticsObserver._sendScreenView (package:firebase_analytics/observer.dart:80:17)
E/flutter ( 4874): #5 FirebaseAnalyticsObserver.didPush (package:firebase_analytics/observer.dart:97:7)
E/flutter ( 4874): #6 _NavigatorPushObservation.notify (package:flutter/src/widgets/navigator.dart:2657:14)
E/flutter ( 4874): #7 List.forEach (dart:core-patch/growable_array.dart:289:8)
E/flutter ( 4874): #8 NavigatorState._flushObserverNotifications (package:flutter/src/widgets/navigator.dart:3269:27)
E/flutter ( 4874): #9 NavigatorState._flushHistoryUpdates (package:flutter/src/widgets/navigator.dart:3236:5)
E/flutter ( 4874): #10 NavigatorState.initState (package:flutter/src/widgets/navigator.dart:2761:5)
E/flutter ( 4874): #11 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4684:58)
E/flutter ( 4874): #12 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
E/flutter ( 4874): #13 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #14 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #15 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4571:16)
E/flutter ( 4874): #16 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
E/flutter ( 4874): #17 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5)
E/flutter ( 4874): #18 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
E/flutter ( 4874): #19 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #20 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #21 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4571:16)
E/flutter ( 4874): #22 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
E/flutter ( 4874): #23 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5)
E/flutter ( 4874): #24 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
E/flutter ( 4874): #25 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #27 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4571:16)
E/flutter ( 4874): #28 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
E/flutter ( 4874): #29 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5)
E/flutter ( 4874): #30 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
E/flutter ( 4874): #31 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #32 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #33 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4571:16)
E/flutter ( 4874): #34 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
E/flutter ( 4874): #35 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5)
E/flutter ( 4874): #36 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
E/flutter ( 4874): #37 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4571:16)
E/flutter ( 4874): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
E/flutter ( 4874): #41 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5)
E/flutter ( 4874): #42 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
E/flutter ( 4874): #43 Element.inflateWidget (package:flutter/src/widgets/framework.d
E/flutter ( 4874): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method currentUser on channel plugins.flutter.io/firebase_auth)
E/flutter ( 4874): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:7)
E/flutter ( 4874): <asynchronous suspension>
E/flutter ( 4874): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:334:12)
E/flutter ( 4874): #2 MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:361:48)
E/flutter ( 4874): #3 MethodChannelFirebaseAuth.getCurrentUser (package:firebase_auth_platform_interface/src/method_channel_firebase_auth.dart:43:10)
E/flutter ( 4874): #4 FirebaseAuth.currentUser (package:firebase_auth/src/firebase_auth.dart:316:45)
E/flutter ( 4874): #5 _LoginPageState.initState (package:MoradaDosSonhos/pages/login/login_page.dart:62:57)
E/flutter ( 4874): #6 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4684:58)
E/flutter ( 4874): #7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
E/flutter ( 4874): #8 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #9 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #10 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5874:14)
E/flutter ( 4874): #11 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #12 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4571:16)
E/flutter ( 4874): #14 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
E/flutter ( 4874): #15 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5)
E/flutter ( 4874): #16 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
E/flutter ( 4874): #17 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #18 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #19 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5874:14)
E/flutter ( 4874): #20 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #21 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #22 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5874:14)
E/flutter ( 4874): #23 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #24 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #25 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4571:16)
E/flutter ( 4874): #26 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4719:11)
E/flutter ( 4874): #27 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
E/flutter ( 4874): #28 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5)
E/flutter ( 4874): #29 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4710:11)
E/flutter ( 4874): #30 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
E/flutter ( 4874): #31 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #32 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #33 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5874:14)
E/flutter ( 4874): #34 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #35 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #36 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5874:14)
E/flutter ( 4874): #37 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
E/flutter ( 4874): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
E/flutter ( 4874): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4571:16)
E/flutter ( 4874): #40 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4719:11)
E/flutter ( 4874): #41 Element.rebuild (package:flutter/src/widgets/framework.dart:4262:5)
E/flutter ( 4874): #42 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4525:5)
E/flutter ( 4874): #43 StatefulElement._firstBuild (package:flutter/src/wi
I/zygote ( 4874): Do full code cache collection, code=121KB, data=84KB
I/zygote ( 4874): After code cache collection, code=102KB, data=60KB
I/zygote ( 4874): Do partial code cache collection, code=120KB, data=73KB
I/zygote ( 4874): After code cache collection, code=120KB, data=73KB
I/zygote ( 4874): Increasing code cache capacity to 512KB
W/OkHttpClient( 4874): A connection to https://settings.crashlytics.com/ was leaked. Did you forget to close a response body?