问题现象
指令启动AVD时报错如下:
INFO | Android emulator version 31.3.14.0 (build_id 9322596) (CL:N/A)
emulator: INFO: Use user provided system path C:\Users\xxx\AppData\Local\Android\Sdk\system-images\android-34\google_atd\x86_64
INFO | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
INFO | IPv4 server found: 10.68.xx.xx
WARNING | Failed to process .ini file C:\Users\xxx\.android\avd\Pixel8API34.avd\quickbootChoice.ini for reading.
INFO | added library vulkan-1.dll
INFO | configAndStartRenderer: setting vsync to 60 hz
INFO | Sending adb public key [QAAAAC/loXAxfqo/xBPfqMwYH0iHyXweF1rWNO7Beuf9Kkay0FI9A5L4L6EXS+3gbyn6omszaaQutCG5HCCtcAfqKErh6FEMpr3IMIzEbKRUosdKQ4RakPditrYbXYi6vgeOTHq0BvV0P8d+Qei7sQKOsaNQ6QDkCatOYZBJzzzoUVdw8irLqOiCjKWHuTQ9PSPbQ6tqg6XqiUPaR6fBBWTf59AiP/McgWuoXYF4c5CialPBeyHD7Wm7QyYP4dZH+t1DbwShcJUWmoUiLiy2LVut4Dr/ZHrhtT/rEuMaywe2AwiUTXDpKDBIrbpxhdR1AzwbL91COUEh9kUfGOL5/o/bCNDZluCvt6lzmJ85yxas7ZieaG4L86OC9+tnizh4FlvheMJOMjmWwSchX1gvNu26oiLbxveLGkP1bKdJqWi4ydpQbjUMA6iEtNvZ914zfVYpnse0FUyZ+Kt/iZMO4F6ifk2d+FldEcSscenc26CZytzlrfkVhFH07hu4ZZlXHP9DZsRBbWRnbwvL9gOST1G5VfassTErQxkWsOE+i6Flgfs6brLpOOucYbGAUul4u1Lcb08vD3pAa4fDH8oqQ4Q6QuLSspTXjjvzkwb7WAESrqZw+sb1J0ZqwRpEwTigWjlht6K3CYHU3hGqjnDaEt3rVdQRd9xqUA+QyBQ+8k0Dg6AUu06EcAEAAQA= @unknown]
INFO | injectedQemuChannel!
INFO | Informing listeners of injection.
INFO | Rootcanal has been activated.
HAX is working and emulator runs in fast virt mode.
WARNING | *** No gRPC protection active, consider launching with the -grpc-use-jwt flag.***
INFO | Started GRPC server at 127.0.0.1:8554, security: Local, auth: none
INFO | Advertising in: C:\Users\xxx\AppData\Local\Temp\avd\running\pid_34780.ini
INFO | setDisplayConfigs w 1080 h 2400 dpiX 420 dpiY 420
WARNING | Failed to process .ini file C:\Users\xxx\.android\emu-update-last-check.ini for reading.
WARNING | UpdateCheck: Failure: Couldn't connect to server
WARNING | UpdateCheck: failed to get the latest version, skipping check (current version '31.3.14-9322596')
解决方法
更新Android Emulator,路径:Android Studio -> File -> Settings -> Languages & Frameworks -> SDK Tools -> Android Emulator