Android 模拟器启动失败:物理设备无效

问题描述 投票:0回答:1

我收到错误:vkGetPhysicalDeviceProperties:无效的物理设备 [VUID-vkGetPhysicalDeviceProperties-physicalDevice-parameter] 这是 avd 的详细信息: avd详情

这是我尝试过的:

emulator -avd Pixel_3a_API_30 -verbose

这是输出:

INFO    | Android emulator version 32.1.15.0 (build_id 10696886) (CL:N/A)
INFO    | Found systemPath D:\programData\AndroidSDK\system-images\android-30\google_apis_playstore\x86\
INFO    | Storing crashdata in: C:\Users\lxt\AppData\Local\Temp\\AndroidEmulator\emu-crash.db, detection is enabled
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
VERBOSE | autoconfig: -skin pixel_3a
VERBOSE | autoconfig: -skindir D:\programData\AndroidSDK\skins\
WARNING | Please update the emulator to one that supports the feature(s): Vulkan
VERBOSE | querying file version info API...
VERBOSE | found kernelbase.dll
VERBOSE | GetFileVersionInfoSizeW found. On Windows 10?
VERBOSE | GetFileVersionInfoW found. On Windows 10?
VERBOSE | VerQueryValueW found. Can query file versions
VERBOSE | queryFileVersionInfo: path not found: amdvlk64.dll
VERBOSE | querying file version info API...
VERBOSE | queryFileVersionInfo: path not found: amdvlk32.dll
VERBOSE | querying file version info API...
VERBOSE | autoconfig: -kernel D:\programData\AndroidSDK\system-images\android-30\google_apis_playstore\x86\\kernel-ranchu-64
VERBOSE | Target arch = 'x86'
VERBOSE | Auto-config: -qemu -cpu qemu32
VERBOSE | Auto-detect: Kernel image requires new device naming scheme.
VERBOSE | Auto-detect: Kernel does not support YAFFS2 partitions.
VERBOSE | autoconfig: -ramdisk D:\programData\AndroidSDK\system-images\android-30\google_apis_playstore\x86\\ramdisk.img
VERBOSE | Using initial system image: D:\programData\AndroidSDK\system-images\android-30\google_apis_playstore\x86\\system.img
VERBOSE | Using initial vendor image: D:\programData\AndroidSDK\system-images\android-30\google_apis_playstore\x86\\vendor.img
VERBOSE | autoconfig: -data C:\Android\.android\avd\Pixel_3a_API_30.avd\userdata-qemu.img
VERBOSE | autoconfig: -initdata C:\Android\.android\avd\Pixel_3a_API_30.avd\userdata.img
VERBOSE | autoconfig: -cache C:\Android\.android\avd\Pixel_3a_API_30.avd\cache.img
VERBOSE | autoconfig: -sdcard C:\Android\.android\avd\Pixel_3a_API_30.avd\sdcard.img
VERBOSE | Physical RAM size: 2048MB
VERBOSE | VM heap size 256MB is below hardware specified minimum of 512MB,setting it to that value
VERBOSE | System image is read only
INFO    | IPv4 server found: 10.128.1.114
VERBOSE | Ignore IPv6 address: 806:8697:102::6995:80:0
VERBOSE | Ignore IPv6 address: 806:8697:102::6995:80:0
 (2x)
VERBOSE | Ignore IPv6 address: f810:8697:102::6995:80:0
VERBOSE | Ignore IPv6 address: f810:8697:102::6995:80:0
 (2x)
VERBOSE | Ignore IPv6 address: 2019:8697:102::6995:80:0
VERBOSE | Ignore IPv6 address: 2019:8697:102::6995:80:0
 (2x)
VERBOSE | Ignore IPv6 address: 101f:8697:102::6995:80:0
VERBOSE | Ignore IPv6 address: 101f:8697:102::6995:80:0
 (2x)
VERBOSE | Ignore IPv6 address: b025:8697:102::6995:80:0
VERBOSE | Ignore IPv6 address: b025:8697:102::6995:80:0
 (2x)
VERBOSE | Ignore IPv6 address: 102e:8697:102::6995:80:0
VERBOSE | Ignore IPv6 address: 102e:8697:102::6995:80:0
 (2x)
VERBOSE | Ignore IPv6 address: d841:8697:102::6995:80:0
VERBOSE | Ignore IPv6 address: d841:8697:102::6995:80:0
 (2x)
VERBOSE | Ignore IPv6 address: d847:8697:102::6995:80:0
VERBOSE | Ignore IPv6 address: d847:8697:102::6995:80:0
 (2x)
VERBOSE | Found 1 DNS servers:
VERBOSE |       10.128.1.114
VERBOSE | trying to load skin file 'D:\programData\AndroidSDK\skins\\pixel_3a\layout'
WARNING | Failed to process .ini file C:\Android\.android\avd\Pixel_3a_API_30.avd\quickbootChoice.ini for reading.
VERBOSE | CPU Acceleration: working
VERBOSE | CPU Acceleration status: GVM (version 2.1) is installed and usable.
VERBOSE | handleCpuAcceleration: feature check for hvf
VERBOSE | registered 'boot-properties' qemud service
VERBOSE | Adding boot property: 'qemu.cmdline' = 'androidboot.logcat=*:V androidboot.consolepipe=qemu_pipe,pipe:logcat'
VERBOSE | Adding boot property: 'qemu.logcat' = 'start'
INFO    | Crash reports will be automatically uploaded to: https://clients2.google.com/cr/report
VERBOSE | GPU emulation enabled using 'host' mode
VERBOSE | Initializing hardware OpenGLES emulation support
VERBOSE | create display 0
VERBOSE | setDisplayPose 0 x 0 y 0 w 1080 h 2220 dpi 0
INFO    | added library vulkan-1.dll
ERROR:             vkGetPhysicalDeviceProperties: Invalid physicalDevice [VUID-vkGetPhysicalDeviceProperties-physicalDevice-parameter]

我希望正常启动 avd。如果我从 android studio 运行,它只会卡住并且没有错误消息。

android emulation android-virtual-device
1个回答
0
投票

我已经解决了这个问题,只需在命令中添加

-feature -Vulkan
即可。

emulator -avd Pixel_3a_API_30 -verbose -feature -Vulkan
© www.soinside.com 2019 - 2024. All rights reserved.