VS Code中Flutter Android模拟器启动失败:缺失必要文件
Flutter Android模拟器启动失败排查求助
我在VS Code中配置Flutter环境,按视频教程操作完成后,无法在Android模拟器上运行Flutter创建的默认应用。之前模拟器是能正常运行的,虚拟手机操作流畅无卡顿,但现在启动就报错。
错误信息
UserName@DESKTOP MINGW64 ~/OneDrive/Projects/RandomProject/design_files/frontend/learning_excercises (initial) $ flutter emulators --launch flutter_emulator The Android emulator exited with code -1073741819 during startup Android emulator stderr: [16736:21260:20240526,210144.551:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\0bcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2) [16736:21260:20240526,210144.553:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\5711c4b0-2ae5-44dc-9e89-6636783173db: The system cannot find the file specified. (2) [20932:18244:20240526,210144.593:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\0bcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2) [20932:18244:20240526,210144.593:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\5711c4b0-2ae5-44dc-9e89-6636783173db: The system cannot find the file specified. (2) WARNING | Failed to process .ini file C:\Users\UserName\.android\avd\..\avd\flutter_emulator.avd\quickbootChoice.ini for reading. added library vulkan-1.dll [20932:21428:20240526,210144.981:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\0bcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2) [20932:18244:20240526,210144.989:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\0bcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2) [20932:18244:20240526,210144.989:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\0c975c4f-3694-4da6-92b0-2f47681e2932: The system cannot find the file specified. (2) [20932:18244:20240526,210144.989:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\0bcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2) [20932:18244:20240526,210144.989:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\0c975c4f-3694-4da6-92b0-2f47681e2932: The system cannot find the file specified. (2) [20932:18244:20240526,210144.989:ERROR directory_reader_win.cc:43] FindFirstFile: The system cannot find the path specified. (3) [20932:18244:20240526,210146.361:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\0bcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2) [20932:18244:20240526,210146.361:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\UserName\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.14.db\attachments\0c975c4f-3694-4da6-92b0-2f47681e2932: The system cannot find the file specified. (2) Address these issues and try again.
已尝试的解决方法
- 重建C:\flutter目录
- 重新配置环境变量路径
- 重新生成模拟器
- 切换模拟器冷启动选项
- 启用Hypervisor
有没有人遇到过类似问题?另外我用的是AMD Ryzen芯片,会不会是导致这个问题的原因?
内容的提问来源于stack exchange,提问作者arikorhun
相关产品推荐
相关产品推荐

