Flutterアプリケーションがスプラッシュスクリーンでフリーズし、次のエラーログが表示されます。
Built build\app\outputs\apk\debug\app-debug.apk.
I/Choreographer(18870): Skipped 75 frames! The application may be doing too much work on its main thread.
D/EGL_emulation(18870): eglMakeCurrent: 0xe8885480: ver 3 0 (tinfo 0xe88835a0)
I/OpenGLRenderer(18870): Davey! duration=2142ms; Flags=1, IntendedVsync=65263803118670, Vsync=65265053118620, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=65265065657900, AnimationStart=65265065738100, PerformTraversalsStart=65265065780200, DrawStart=65265126086300, SyncQueued=65265197367200, SyncStart=65265199471900, IssueDrawCommandsStart=65265199680700, SwapBuffers=65265651453000, FrameCompleted=65265947767800, DequeueBufferDuration=12659000, QueueBufferDuration=920000,
Syncing files to device Android SDK built for x86...
E/flutter (18870): [ERROR:flutter/lib/ui/ui_Dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.Dart:314:7)
Syncing files to device Android SDK built for x86...
E/flutter (18870): <asynchronous suspension>
Syncing files to device Android SDK built for x86...
E/flutter (18870): #1 getApplicationDocumentsDirectory (package:path_provider/path_provider.Dart:84:22)
Syncing files to device Android SDK built for x86...
E/flutter (18870): <asynchronous suspension>
Syncing files to device Android SDK built for x86...
E/flutter (18870): #2 DbContext.initDb (package:appentrega/database.Dart:34:45)
Syncing files to device Android SDK built for x86...
E/flutter (18870): <asynchronous suspension>
Syncing files to device Android SDK built for x86...
E/flutter (18870): #3 DbContext.getContext (package:appentrega/database.Dart:27:21)
Syncing files to device Android SDK built for x86...
E/flutter (18870): <asynchronous suspension>
Syncing files to device Android SDK built for x86...
E/flutter (18870): #4 _SplashScreenState.startTime (package:appentrega/splash.Dart:16:34)
Syncing files to device Android SDK built for x86...
E/flutter (18870): <asynchronous suspension>
Syncing files to device Android SDK built for x86...
E/flutter (18870): #5 _SplashScreenState.initState (package:appentrega/splash.Dart:33:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #6 StatefulElement._firstBuild (package:flutter/src/widgets/framework.Dart:4068:58)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #7 ComponentElement.mount (package:flutter/src/widgets/framework.Dart:3919:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #8 Element.inflateWidget (package:flutter/src/widgets/framework.Dart:3101:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #9 Element.updateChild (package:flutter/src/widgets/framework.Dart:2904:12)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #10 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.Dart:5127:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #11 Element.inflateWidget (package:flutter/src/widgets/framework.Dart:3101:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #12 Element.updateChild (package:flutter/src/widgets/framework.Dart:2904:12)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.Dart:3961:16)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #14 Element.rebuild (package:flutter/src/widgets/framework.Dart:3738:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #15 ComponentElement._firstBuild (package:flutter/src/widgets/framework.Dart:3924:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #16 ComponentElement.mount (package:flutter/src/widgets/framework.Dart:3919:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #17 Element.inflateWidget (package:flutter/src/widgets/framework.Dart:3101:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #18 Element.updateChild (package:flutter/src/widgets/framework.Dart:2904:12)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #19 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.Dart:5127:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #20 Element.inflateWidget (package:flutter/src/widgets/framework.Dart:3101:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #21 Element.updateChild (package:flutter/src/widgets/framework.Dart:2904:12)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #22 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.Dart:5127:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #23 Element.inflateWidget (package:flutter/src/widgets/framework.Dart:3101:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #24 Element.updateChild (package:flutter/src/widgets/framework.Dart:2904:12)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #25 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.Dart:5127:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #26 Element.inflateWidget (package:flutter/src/widgets/framework.Dart:3101:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #27 Element.updateChild (package:flutter/src/widgets/framework.Dart:2904:12)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #28 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.Dart:5127:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #29 Element.inflateWidget (package:flutter/src/widgets/framework.Dart:3101:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #30 Element.updateChild (package:flutter/src/widgets/framework.Dart:2904:12)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.Dart:3961:16)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #32 Element.rebuild (package:flutter/src/widgets/framework.Dart:3738:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #33 ComponentElement._firstBuild (package:flutter/src/widgets/framework.Dart:3924:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #34 StatefulElement._firstBuild (package:flutter/src/widgets/framework.Dart:4088:11)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #35 ComponentElement.mount (package:flutter/src/widgets/framework.Dart:3919:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #36 Element.inflateWidget (package:flutter/src/widgets/framework.Dart:3101:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #37 Element.updateChild (package:flutter/src/widgets/framework.Dart:2904:12)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #38 ComponentElement.performRebuild (package:flutter/src/widgets/framework.Dart:3961:16)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #39 Element.rebuild (package:flutter/src/widgets/framework.Dart:3738:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #40 ComponentElement._firstBuild (package:flutter/src/widgets/framework.Dart:3924:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #41 ComponentElement.mount (package:flutter/src/widgets/framework.Dart:3919:5)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #42 Element.inflateWidget (package:flutter/src/widgets/framework.Dart:3101:14)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #43 Element.updateChild (package:flutter/src/widgets/framework.Dart:2904:12)
Syncing files to device Android SDK built for x86...
E/flutter (18870): #44
Syncing files to device Android SDK built for x86...
D/EGL_emulation(18870): eglMakeCurrent: 0xe8885720: ver 3 0 (tinfo 0xe88832f0)
Syncing files to device Android SDK built for x86...
4.034ms (!)
問題がここにあるようです:[ERROR:flutter/lib/ui/ui_Dart_state.cc(148)]未処理の例外:MissingPluginException(チャネルplugins.flutter.io/path_providerのメソッドgetApplicationDocumentsDirectoryの実装が見つかりません)
すでにこれを行いました:
-すべてのプラグインを削除し、flutter pub get
で再インストールしました。
-実行済みflutter clean
およびflutter run
フラッターランプロセスを終了して、もう一度起動する必要があることがわかりました。フラッターラン内の完全な再起動だけでは機能しませんでした。
ここに参照用のリンクがあります https://github.com/flutter/flutter/issues/10912
編集:これらのパッケージを必ずインポートしてください。