Flutter 我";我在运行初始计数器应用程序时在控制台上得到了这个,该应用程序默认为颤振。我该如何解决这个问题?

Flutter 我";我在运行初始计数器应用程序时在控制台上得到了这个,该应用程序默认为颤振。我该如何解决这个问题?,flutter,flutter-layout,Flutter,Flutter Layout,这是我在调试控制台中运行颤振附带的初始颤振应用程序时得到的大部分内容。这看起来不正常。我该怎么做才能解决这个问题 Built build/app/outputs/apk/debug/app-debug.apk. D/FlutterActivity(12595): Using the launch theme as normal theme. D/FlutterActivityAndFragmentDelegate(12595): Setting up FlutterEngine. D/Flut

这是我在调试控制台中运行颤振附带的初始颤振应用程序时得到的大部分内容。这看起来不正常。我该怎么做才能解决这个问题

 Built build/app/outputs/apk/debug/app-debug.apk.
D/FlutterActivity(12595): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate(12595): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate(12595): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
D/FlutterActivityAndFragmentDelegate(12595): Attaching FlutterEngine to the Activity that owns this Fragment.
D/FlutterView(12595): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@ad2d938
D/FlutterActivityAndFragmentDelegate(12595): Executing Dart entrypoint: main, and sending initial route: /
D/HostConnection(12595): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0
I/Choreographer(12595): Skipped 913 frames!  The application may be doing too much work on its main thread.
D/EGL_emulation(12595): eglMakeCurrent: 0xe02eec60: ver 3 0 (tinfo 0xe030ba70)
D/EGL_emulation(12595): eglMakeCurrent: 0xeb57f3a0: ver 3 0 (tinfo 0xe038db30)
D/EGL_emulation(12595): eglMakeCurrent: 0xe02eede0: ver 3 0 (tinfo 0xe030ba70)
D/EGL_emulation(12595): eglMakeCurrent: 0xeb57f3a0: ver 3 0 (tinfo 0xe038db30)
D/FlutterView(12595): Detaching from a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@ad2d938
D/FlutterView(12595): Detaching from a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@ad2d938
D/EGL_emulation(12595): eglMakeCurrent: 0xeb57f3a0: ver 3 0 (tinfo 0xe038db30)
D/FlutterView(12595): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@ad2d938
D/EGL_emulation(12595): eglCreateContext: 0xe02eede0: maj 3 min 0 rcv 3
D/EGL_emulation(12595): eglMakeCurrent: 0xe02eede0: ver 3 0 (tinfo 0xe030ba70)
I/Choreographer(12595): Skipped 176 frames!  The application may be doing too much work on its main thread.
D/EGL_emulation(12595): eglMakeCurrent: 0xeb57f3a0: ver 3 0 (tinfo 0xe038db30)
D/FlutterView(12595): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@ad2d938
D/EGL_emulation(12595): eglCreateContext: 0xd4b696e0: maj 3 min 0 rcv 3
D/EGL_emulation(12595): eglMakeCurrent: 0xd4b696e0: ver 3 0 (tinfo 0xe030ba70)
I/Choreographer(12595): Skipped 66 frames!  The application may be doing too much work on its main thread.
D/EGL_emulation(12595): eglMakeCurrent: 0xd4b696e0: ver 3 0 (tinfo 0xe030ba70)
Reloaded 1 of 478 libraries in 2,280ms.

假设您没有接触启动程序代码,那么在运行时跳过的帧会下降,这一事实告诉我,这是在您的机器上运行模拟器的自然副产品。通常,可以安全地忽略这些消息中的<100个跳过帧——这意味着您的计算机在实时运行emulator时遇到了困难

将您的物理Android设备放入,然后使用电缆连接,然后选择该设备作为构建目标。如果在手机上运行该应用程序,是否仍会跳过帧?如果你正在运行任何一种现代安卓手机,你通常不会


Android模拟器需要大量的处理能力才能运行。大多数人认为,在物理设备上进行调试比通过仿真器进行调试快几倍

我曾经遇到过同样的问题。当我指向发布模式运行应用程序时,问题得到了解决。请尝试
flatter run--release
而不是
flatter run

请使用
flatter clean和flatter doctor
的结果更新您的问题。在flatter clean之后运行的flatter doctor上未发现任何问题。当我停止模拟器并再次运行时,它在控制台中给出了相同的结果。您是否对starter项目中的代码进行了任何更改?您有多少RAM?这似乎是你的电脑无法在Emulator上运行应用程序…我在mac上运行android Emulator,它有8GB或RAM。这还不够吗@Milvintisshot在模拟器上的重新加载速度快10倍。。。在物理设备上调试应用程序更好,但速度更快…因此我尝试在物理设备上运行,但在物理设备上似乎运行良好…我的mac似乎无法处理android模拟器。