适用于 Android 12 预览版的模拟器无连接 [英] Emulator for Android 12 preview no connection

查看:65
本文介绍了适用于 Android 12 预览版的模拟器无连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 Android 12 Preview 模拟器.我遇到了很多问题,因为模拟器在启动时崩溃了,但是在卸载并再次安装并重新启动机器等之后,我设法启动了它.我现在遇到的问题是互联网连接不起作用.所有其他模拟器都可以正常工作.我试图从命令行启动模拟器来设置 dns

~/Library/Android/sdk/emulator/emulator -avd Pixel_5_API_S -dns-server 8.8.8.8

我得到的是网络仍然不工作,我可以看到很多日志:

<块引用>

vqParseGuestToHostRequestLocked:734 {src_port=2489684015 dst_port=4294967295} 意外的 dst_port

<块引用>

vqParseGuestToHostRequestLocked:734 {src_port=2489684016 dst_port=4294967295} 意外的 dst_port

<块引用>

vqParseGuestToHostRequestLocked:734 {src_port=2489684017 dst_port=4294967295} 意外的 dst_port

<块引用>

vqParseGuestToHostRequestLocked:734 {src_port=2489684018 dst_port=4294967295} 意外的 dst_port

这是我正在使用的模拟器:

名称:Pixel_5_API_SCPU/ABI:Google APIs Intel Atom (x86_64)路径:/Users/username/.android/avd/Pixel_5_API_S.avd目标:google_apis [Google APIs](API 级别 S)皮肤:pixel_4SD卡:512Mfastboot.chosenSnapshotFile:runtime.network.speed:满hw.加速度计:是的hw.device.name: pixel_5hw.lcd.width: 1080image.androidVersion.codename: Shw.initialOrientation:纵向image.androidVersion.api: 30tag.id: google_apishw.mainKeys: 没有hw.camera.front:模拟avd.ini.displayname:Pixel 5 API Shw.gpu.mode:自动hw.ram 大小:1536PlayStore.enabled: 假fastboot.forceColdBoot: 没有hw.cpu.ncore:4硬件键盘:是的hw.sensors.proximity: 是hw.dPad:没有hw.lcd.height: 2340vm.heapSize:256skin.dynamic:是的hw.device.manufacturer:谷歌hw.gps:是的hw.audioInput: 是image.sysdir.1: system-images/android-S/google_apis/x86_64/showDeviceFrame: 是hw.camera.back:虚拟场景AvdId:Pixel_5_API_Shw.lcd.密度:440hw.arc:假hw.device.hash2: MD5:3274126e0242a0d86339850416b0ce34fastboot.forceChosenSnapshotBoot:否fastboot.forceFastBoot: 是hw.trackBall: 没有hw.battery: 是的hw.sdCard:是的tag.display:谷歌 APIruntime.network.latency:无disk.dataPartition.size: 6442450944hw.sensors.orientation: 是avd.ini.encoding: UTF-8hw.gpu.enabled: 是

解决方案

基于 issuetracker,Android S beta 2 模拟器映像取决于模拟器本身的较新版本(没有明确要求).该问题应该通过从 canary 频道安装较新的 30.7.3 版本的模拟器来解决.


更新 2021-06-23:模拟器 30.7.4 现已在稳定版中推出.

I have installed the Android 12 Preview emulator. I had a lot of problems because the emulator was crashing on start up but after uninstalling and installing it again and restarting the machine etc, I managed to start it. The problem I have now is that the internet connection does not work. All the other emulators work fine. I have tried to start the emulator from the command line to set the dns

~/Library/Android/sdk/emulator/emulator -avd Pixel_5_API_S -dns-server 8.8.8.8 

What I get is that the network still does not work and I can see a lot of logs:

vqParseGuestToHostRequestLocked:734 {src_port=2489684015 dst_port=4294967295} unexpected dst_port

vqParseGuestToHostRequestLocked:734 {src_port=2489684016 dst_port=4294967295} unexpected dst_port

vqParseGuestToHostRequestLocked:734 {src_port=2489684017 dst_port=4294967295} unexpected dst_port

vqParseGuestToHostRequestLocked:734 {src_port=2489684018 dst_port=4294967295} unexpected dst_port

This is the emulator that I'm using:

Name: Pixel_5_API_S
CPU/ABI: Google APIs Intel Atom (x86_64)
Path: /Users/username/.android/avd/Pixel_5_API_S.avd
Target: google_apis [Google APIs] (API level S)
Skin: pixel_4
SD Card: 512M
fastboot.chosenSnapshotFile: 
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: pixel_5
hw.lcd.width: 1080
image.androidVersion.codename: S
hw.initialOrientation: Portrait
image.androidVersion.api: 30
tag.id: google_apis
hw.mainKeys: no
hw.camera.front: emulated
avd.ini.displayname: Pixel 5 API S
hw.gpu.mode: auto
hw.ramSize: 1536
PlayStore.enabled: false
fastboot.forceColdBoot: no
hw.cpu.ncore: 4
hw.keyboard: yes
hw.sensors.proximity: yes
hw.dPad: no
hw.lcd.height: 2340
vm.heapSize: 256
skin.dynamic: yes
hw.device.manufacturer: Google
hw.gps: yes
hw.audioInput: yes
image.sysdir.1: system-images/android-S/google_apis/x86_64/
showDeviceFrame: yes
hw.camera.back: virtualscene
AvdId: Pixel_5_API_S
hw.lcd.density: 440
hw.arc: false
hw.device.hash2: MD5:3274126e0242a0d86339850416b0ce34
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: 6442450944
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes

解决方案

Based on the issuetracker, the Android S beta 2 emulator image depends on a newer version of the emulator itself (without explicitly requiring it). The problem should be resolved by installing a newer 30.7.3 version of the emulator from the canary channel.


Update 2021-06-23: Emulator 30.7.4 is now available in the stable channel.

这篇关于适用于 Android 12 预览版的模拟器无连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆