I am trying to setup Flutter to VS Code. I have been watching some videos to do it and what seems to work on Youtube does not work for me. I have setup everything but when it comes to running the default app that flutter creates I cannot run it on an Android emulator.
This is the Error I get:
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:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachmentsbcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2)
[16736:21260:20240526,210144.553:ERROR filesystem_win.cc:130] GetFileAttributes C:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachments5711c4b0-2ae5-44dc-9e89-6636783173db: The system cannot find the file specified. (2)
[20932:18244:20240526,210144.593:ERROR filesystem_win.cc:130] GetFileAttributes C:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachmentsbcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2)
[20932:18244:20240526,210144.593:ERROR filesystem_win.cc:130] GetFileAttributes C:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachments5711c4b0-2ae5-44dc-9e89-6636783173db: The system cannot find the file specified. (2)
WARNING | Failed to process .ini file C:UsersUserName.androidavd..avdflutter_emulator.avdquickbootChoice.ini for reading.
added library vulkan-1.dll
[20932:21428:20240526,210144.981:ERROR filesystem_win.cc:130] GetFileAttributes C:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachmentsbcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2)
[20932:18244:20240526,210144.989:ERROR filesystem_win.cc:130] GetFileAttributes C:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachmentsbcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2)
[20932:18244:20240526,210144.989:ERROR filesystem_win.cc:130] GetFileAttributes C:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachmentsc975c4f-3694-4da6-92b0-2f47681e2932: The system cannot find the file specified. (2)
[20932:18244:20240526,210144.989:ERROR filesystem_win.cc:130] GetFileAttributes C:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachmentsbcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2)
[20932:18244:20240526,210144.989:ERROR filesystem_win.cc:130] GetFileAttributes C:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachmentsc975c4f-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:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachmentsbcccc26-9e13-4c05-9d1d-23a8c3aad815: The system cannot find the file specified. (2)
[20932:18244:20240526,210146.361:ERROR filesystem_win.cc:130] GetFileAttributes C:UsersUserNameAppDataLocalTemp\AndroidEmulatoremu-crash-34.2.14.dbattachmentsc975c4f-3694-4da6-92b0-2f47681e2932: The system cannot find the file specified. (2)
Address these issues and try again.
The things that I have tried:
- recreate the C:flutter/directory
- redefine the path
- regenerate the emulator
- toggle cold start option
- enable hypervisor
What is weird is that the emulator worked for once. I had a phone on my screen that I could turn on and do stuff without any lag etc.
If anybody know anything about this issue I would really appreciate it,
Thanks in Advance
Note: I have an AMD Chip, Ryzen, could this be the issue?