我的所有模拟器都遇到这个问题。当我创建一个新的时,我也遇到了问题。
这是我的日志:
INFO - Emulator: Pixel 8 Pro API 33 - C:\Users\...\AppData\Local\Android\Sdk\emulator\emulator.exe -netdelay none -netspeed full -avd Pixel_8_Pro_API_33 -qt-hide-window -grpc-use-token -idle-grpc-timeout 300
2024-07-07 17:15:04,948 [ 84135] INFO - Emulator: Pixel 8 Pro API 33 - [9448:1780:20240707,171504.947:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\...\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.15.db\attachments\11285d6c-2b21-4cf6-9304-2d3feebf199d: Не удается найти указанный файл. (2)
2024-07-07 17:15:04,957 [ 84144] INFO - Emulator: Pixel 8 Pro API 33 - Storing crashdata in: C:\Users\...\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.15.db, detection is enabled for process: 20740
2024-07-07 17:15:04,958 [ 84145] INFO - Emulator: Pixel 8 Pro API 33 - Android emulator version 34.2.15.0 (build_id 11906825) (CL:N/A)
2024-07-07 17:15:04,958 [ 84145] INFO - Emulator: Pixel 8 Pro API 33 - Found systemPath C:\Users\...\AppData\Local\Android\Sdk\system-images\android-33\google_apis_playstore\x86_64\
2024-07-07 17:15:05,193 [ 84380] INFO - Emulator: Pixel 8 Pro API 33 - [1728:15516:20240707,171505.193:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\...\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.15.db\attachments\11285d6c-2b21-4cf6-9304-2d3feebf199d: Не удается найти указанный файл. (2)
2024-07-07 17:15:05,258 [ 84445] INFO - Emulator: Pixel 8 Pro API 33 - Ignore IPv6 address: 3051:852d:7b01:0:9020:852d:7b01:0 (2x)
2024-07-07 17:15:05,259 [ 84446] WARN - Emulator: Pixel 8 Pro API 33 - Failed to process .ini file C:\Users\...\.android\avd\..\avd\Pixel_8_Pro_API_33.avd\quickbootChoice.ini for reading.
2024-07-07 17:15:05,560 [ 84747] INFO - Emulator: Pixel 8 Pro API 33 - added library vulkan-1.dll
2024-07-07 17:15:05,688 [ 84875] INFO - Emulator: Pixel 8 Pro API 33 - initialize: Supports id properties, got a vulkan device UUID
2024-07-07 17:15:05,690 [ 84877] INFO - Emulator: Pixel 8 Pro API 33 - init: Could not find wglGetExtensionsString! arbFound 0 listarbNull/empty 1 0 extFound 0 extNull/empty 1 0 remote 0
2024-07-07 17:15:05,692 [ 84879] INFO - Emulator: Pixel 8 Pro API 33 - OpenGL Core Profile not supported.
2024-07-07 17:15:05,821 [ 85008] INFO - Emulator: Pixel 8 Pro API 33 - [1728:15516:20240707,171505.821:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\...\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.15.db\attachments\256e35e9-7833-4ab5-a935-719069882ef9: Не удается найти указанный файл. (2)
2024-07-07 17:15:05,821 [ 85008] INFO - Emulator: Pixel 8 Pro API 33 - [1728:15516:20240707,171505.821:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\...\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.15.db\attachments\256e35e9-7833-4ab5-a935-719069882ef9: Не удается найти указанный файл. (2)
2024-07-07 17:15:05,821 [ 85008] INFO - Emulator: Pixel 8 Pro API 33 - [1728:15516:20240707,171505.821:ERROR directory_reader_win.cc:43] FindFirstFile: Системе не удается найти указанный путь. (3)
2024-07-07 17:15:06,760 [ 85947] INFO - Emulator: Pixel 8 Pro API 33 - [1728:15516:20240707,171506.760:ERROR filesystem_win.cc:130] GetFileAttributes C:\Users\...\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.2.15.db\attachments\256e35e9-7833-4ab5-a935-719069882ef9: Не удается найти указанный файл. (2)
2024-07-07 17:15:06,766 [ 85953] INFO - Emulator: Pixel 8 Pro API 33 - Process finished with exit code -1073741819 (0xC0000005)
2024-07-07 17:15:06,766 [ 85953] WARN - Emulator: Pixel 8 Pro API 33 - Emulator terminated with exit code -1073741819
更新: 我可以使用以下命令从终端运行我的模拟器:
C:\Users\...\AppData\Local\Android\Sdk\emulator> ./emulator -gpu off -avd Pixel_8_Pro_API_31
但我仍然不明白问题的根源。
方法一 发生这种情况时,您不必完全删除模拟器。要删除的文件应具有“.lock”扩展名:
您无需触及配置文件。
您可以通过单击“操作”选项卡(在 ADB 管理器中)下的箭头,然后选择“在磁盘上显示”来轻松找到文件位置。
方法2 这对我有用:
转到 AVD Manager,单击右侧的向下箭头,然后单击“停止”。这会停止模拟器,您可以重新运行它。
方法3 有很多答案,但我只是扩展回答这个问题。当我按照 Android Studio 说明并尝试删除该文件夹或文件但我无法删除它时会发生什么,所以我要做的是打开 AVD 管理器并单击右侧的向下箭头可以在下面的屏幕截图中看到,单击“开始”后单击“停止”,其工作正常。无需重新启动或重新创建 AVD。 2