我使用 Visual Studio Code 作为 Flutter 开发的 IDE。我正在 Android 模拟器 Pixel 2 API 28 上运行该应用程序。
问题:每当我尝试Flutter run在 cmd 中运行命令时,我都会收到一条消息Lost connection to device。
I/OpenGLRenderer( 8484): Davey! duration=1122ms; Flags=1,
IntendedVsync=6065658887920, Vsync=6066275554562,
OldestInputEvent=9223372036854775807, NewestInputEvent=0,
HandleInputStart=6066285882120, AnimationStart=6066285961770,
PerformTraversalsStart=6066287810650, DrawStart=6066297042570,
SyncQueued=6066299589490, SyncStart=6066304787990,
IssueDrawCommandsStart=6066305258460, SwapBuffers=6066689863430,
FrameCompleted=6066786911240, DequeueBufferDuration=43132000,
QueueBufferDuration=733000,
D/EGL_emulation( 8484): eglMakeCurrent: 0xcbb143c0: ver 3 0 (tinfo
0xe47d8860)
Lost connection to device.
Exited (sigterm)
Run Code Online (Sandbox Code Playgroud)
当我尝试运行我的应用程序时出现错误。这是我第一次发生这种错误。我认为我没有更改任何会中断与我的设备的连接的内容,或者错误可能来自其他地方。