gpt4 book ai didi

android - 无法启动Android 12 AVD,但可以启动Android 11 AVD

转载 作者:行者123 更新时间:2023-12-05 00:02:32 29 4
gpt4 key购买 nike

我一直在使用 Android 11 AVD 毫无问题地开发和测试我的应用。现在我想测试 Android 12 并使用 Android 12 图像创建一个新的 AVD。但是当我启动 AVD 时,它会生成一个 qemu 进程,但我没有看到任何窗口,也没有任何反应(即使在 30 分钟后)。我尝试了各种图像并重新安装了整个 SDK。

这是在终端中启动模拟器的日志:

[bblock@Manjaro emulator]$ emulator @Pixel_4_API_31
2021-09-21 13:07:46.427 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_boutique.cc:33 - Register: Registering beacon_swarm
2021-09-21 13:07:46.427 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_boutique.cc:33 - Register: Registering beacon
2021-09-21 13:07:46.427 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_boutique.cc:33 - Register: Registering scripted_beacon
2021-09-21 13:07:46.427 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_boutique.cc:33 - Register: Registering remote_loopback
2021-09-21 13:07:46.427 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_boutique.cc:33 - Register: Registering car_kit
2021-09-21 13:07:46.427 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_boutique.cc:33 - Register: Registering classic
2021-09-21 13:07:46.427 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_boutique.cc:33 - Register: Registering sniffer
2021-09-21 13:07:46.427 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_boutique.cc:33 - Register: Registering keyboard
handleCpuAcceleration: feature check for hvf
emulator: INFO: QtLogger.cpp:68: Warning: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled ((null):0, (null))


Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
emulator: INFO: QtLogger.cpp:68: Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_posture_requested(int) ((null):0, (null))


emulator: INFO: QtLogger.cpp:68: Warning: QMetaObject::connectSlotsByName: No matching signal for on_dismiss_posture_selection_dialog() ((null):0, (null))


cannot add library /home/bblock/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
added library ./lib64/vulkan/libvulkan.so
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

emulator: INFO: userspace-boot-properties.cpp:249: Sending adb public key [QAAAAAcE9uhJ1u1QvVBgs/XDrtc7M+IkSmH4jKcz30MqJrYsxKH2yMB3krqw7ahlbMbA176wuKBGmn/ejrTGukT9Q8sQyVwHqaKr+R4t0uoGreupf49He+9E8RIop7t0vJD92QJdcFPquJJDACywPGoPp0JhAxZyAjcyYYT2HO1UxHVI3t6U/Nqd3qvpYMc14jV/asXgEXNt4fiL3sjJILjy7r3mu/V6djANBkd8d4mZv1t3po/VNEPoNKVjyCjFe6KcW31QtON3tNg2WKDu4bSuiUI3ORXyFeSYJAgGhv2u5Mc+CO3wPI6Dkr0eAGtLBrIwdF0CuNnGJReB99FTs7L8BC44dfeouUwwS69y7vHO1zVMqo2iVMiLCFoQzvKisjJFishvCBxYgXveexcynBBiVsCbWW5WZyBeNokpjn4bpHHTB33vp79EYLxTvzURnYSwDkCFwzB+Ihs8RIjneKKuvIDAjeg2tnr67rQcQeizKeua3JlT8bfMjt5nm/fcUsW1XKEHsV1L9dg5XX5uwUEdTPmGmApEUTekQQgfJ2rZl1/S4QJgecjCFa000GaJ6YCIee1fS7wluswyAEhGEZD3K98Yh/bM2b2D3SnWHYohiKK4YPxzujou51H2WgDxbNOm0luS+mTAmAovkKNAOIcGU43KEgy//OWeQ8yL/F4wq2Wsl3hMEAEAAQA= bblock@unknown]
qemu-system-x86_64: -chardev socket,port=36801,host=::1,nowait,nodelay,ipv6,id=modem: address resolution failed for ::1:36801: Der Name oder der Dienst ist nicht bekannt
^C^C^CSpeicherzugriffsfehler (Speicherabzug geschrieben)

我使用的是 Manjaro、Kernel 5.14、最新的 Nvidia 驱动程序。

最佳答案

address resolution failed for ::1:36801:

同样的错误。

我通过以下命令暂时禁用环回接口(interface)的 ipv6 解决了这个问题:

sudo sysctl net.ipv6.conf.lo.disable_ipv6=1

并重启 systemd-sysctl.service:

sudo systemctl restart systemd-sysctl

要永久禁用 ipv6,只需创建文件/etc/sysctl.d/40-ipv6.conf:

#Disable ipv6 for lo interface
net.ipv6.conf.lo.disable_ipv6=1

关于android - 无法启动Android 12 AVD,但可以启动Android 11 AVD,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69268064/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com