【发布时间】:2021-09-12 12:45:22
【问题描述】:
请看我的问题 1 分钟 不是 android logo 卡住了,是 android logo 连续动画但主屏幕不来。
我的设备不支持 VT-x,所以我使用 armeabi 7
我已经安装了 android studio,但今天有两个 armeabi 设备:-
Name: Pixel_3a_API_21
CPU/ABI: Google APIs ARM (armeabi-v7a)
Path: C:\Users\USER\.android\avd\Pixel_3a_API_21.avd
Target: google_apis [Google APIs] (API level 21)
Skin: pixel_3a
SD Card: 512 MB
fastboot.chosenSnapshotFile:
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: pixel_3a
hw.lcd.width: 1080
hw.initialOrientation: Portrait
image.androidVersion.api: 21
tag.id: google_apis
hw.mainKeys: no
hw.camera.front: webcam0
avd.ini.displayname: Pixel 3a API 21
hw.gpu.mode: off
hw.ramSize: 1536
PlayStore.enabled: false
fastboot.forceColdBoot: no
hw.cpu.ncore: 1
hw.keyboard: yes
hw.sensors.proximity: yes
hw.dPad: no
hw.lcd.height: 2220
vm.heapSize: 256
skin.dynamic: yes
hw.device.manufacturer: Google
hw.gps: yes
hw.audioInput: yes
image.sysdir.1: system-images\android-21\google_apis\armeabi-v7a\
hw.cpu.model: cortex-a8
showDeviceFrame: yes
hw.camera.back: webcam0
AvdId: Pixel_3a_API_21
hw.lcd.density: 440
hw.arc: false
hw.device.hash2: MD5:0e6953ebf01bdc6b33a2f54746629c50
fastboot.forceChosenSnapshotBoot: no
fastboot.forceFastBoot: yes
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Google APIs
runtime.network.latency: none
disk.dataPartition.size: 800M
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: no
Name: Pixel_4_API_21
CPU/ABI: Google APIs ARM (armeabi-v7a)
Path: C:\Users\USER\.android\avd\Pixel_4_API_21.avd
Target: google_apis [Google APIs] (API level 21)
Skin: pixel_4
SD Card: 512M
fastboot.chosenSnapshotFile:
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: pixel_4
hw.lcd.width: 1080
hw.initialOrientation: Portrait
image.androidVersion.api: 21
tag.id: google_apis
hw.mainKeys: no
hw.camera.front: emulated
avd.ini.displayname: Pixel 4 API 21
hw.gpu.mode: auto
hw.ramSize: 1536
PlayStore.enabled: false
fastboot.forceColdBoot: no
hw.cpu.ncore: 1
hw.keyboard: yes
hw.sensors.proximity: yes
hw.dPad: no
hw.lcd.height: 2280
vm.heapSize: 256
skin.dynamic: yes
hw.device.manufacturer: Google
hw.gps: yes
hw.audioInput: yes
image.sysdir.1: system-images\android-21\google_apis\armeabi-v7a\
hw.cpu.model: cortex-a8
showDeviceFrame: yes
hw.camera.back: virtualscene
AvdId: Pixel_4_API_21
hw.lcd.density: 440
hw.arc: false
hw.device.hash2: MD5:6b5943207fe196d842659d2e43022e20
fastboot.forceChosenSnapshotBoot: no
fastboot.forceFastBoot: yes
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Google APIs
runtime.network.latency: none
disk.dataPartition.size: 800M
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
和my issue 在两个设备中继续 avd 以错误开头 error 那么我的问题
所以我想了解更多细节
去E:\ANDROIDSDKLOCATION\emulator
并用 cmd 启动模拟器
模拟器再次启动 error 然后我的问题 但是我在cmd中遇到了很多错误
E:\ANDROIDSDK\emulator>emulator -avd Pixel_4_API_21
emulator: Android emulator version 30.7.4.0 (build_id 7453540) (CL:N/A)
emulator: WARNING: encryption is off
emulator: WARNING: Your GPU drivers may have a bug. Switching to software rendering.
cannot add library vulkan-1.dll: failed
cannot add library vulkan-1.dll: failed
Failed to open unused/windows_msvc-x86_64/qemu.conf, err: 2
Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT +UG features is currently needed. We will address this in a future release.
emulator: INFO: GrpcServices.cpp:315: Started GRPC server at 127.0.0.1:8554, security: Local
emulator: INFO: EmulatorAdvertisement.cpp:93: Advertising in: C:\Users\USER\AppData\Local\Temp\avd\running\pid_3520.ini
emulator: emulator window was out of view and was recentered
这 3 个是我认为导致我的问题的错误,如何解决这 3 个问题
cannot add library vulkan-1.dll: failed
cannot add library vulkan-1.dll: failed
Failed to open unused/windows_msvc-x86_64/qemu.conf, err: 2
来自https://stackoverflow.com/a/68231709/14862885 和https://stackoverflow.com/a/62025610/14862885
我添加了 vulkan 库,
和
在 cmd E:\ANDROIDSDK\emulator>echo # > \qemu.conf
我之前说的三个错误都不是现在
现在当我开始我的 avd 时
E:\ANDROIDSDK\emulator>emulator -avd Pixel_4_API_21
emulator: Android emulator version 30.7.5.0 (build_id 7491168) (CL:N/A)
emulator: WARNING: encryption is off
emulator: WARNING: Your GPU drivers may have a bug. Switching to software render
ing.
added library vulkan-1.dll
Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT +
UG features is currently needed. We will address this in a future release.
emulator: INFO: GrpcServices.cpp:315: Started GRPC server at 127.0.0.1:8554, sec
urity: Local
emulator: INFO: EmulatorAdvertisement.cpp:93: Advertising in: C:\Users\USER\AppD
ata\Local\Temp\avd\running\pid_4128.ini
但仍然是我的问题...
最后,我在 cmd 中看到的警告
emulator: WARNING: encryption is off
emulator: WARNING: Your GPU drivers may have a bug. Switching to software rendering.
Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
还有一个dialog warning
我能做些什么来避免issue 我需要主屏幕帮助!
【问题讨论】:
标签: android android-studio android-emulator