Android 模拟器在 Mac M1 中不显示默认 Android Wifi

Android Emulator not showing the default Android Wifi in Mac M1

我正在使用配备 M1 芯片的 Macbook Pro。我安装了

Android Studio 4.2.1 Build #AI-202.7660.26.42.7351085, built on May 10, 2021 Runtime version: 11.0.8+10-b944.6916264 x86_64 VM: OpenJDK 64-Bit Server VM by N/A macOS 10.16 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Registry: external.system.auto.import.disabled=true

我根据 this.

的说明创建了以下设备

Name: Pixel_4_API_S CPU/ABI: Google APIs ARM (arm64-v8a) Path: /Users/vineethpalani/.android/avd/Pixel_4_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_4 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 4 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: 2280 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/arm64-v8a/ showDeviceFrame: yes hw.camera.back: virtualscene AvdId: Pixel_4_API_S 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

虽然我可以 运行 设备,但它无法访问互联网,也没有启用 Wifi。

即使我打开 Wifi,它也会关闭。我还尝试根据互联网搜索显示的内容添加 DNS。我尝试重新启动、打开和关闭 Wifi 以及设备。

似乎没有任何效果。我错过了什么吗?

这对我有用:

  1. 安装 Android Studio 的最新金丝雀版本之一。使用 MAC ARM 版本(Apple Silicon)。
  2. 创建新虚拟设备时使用API S 级和 arm64 虚拟映像。 (可以在其他图片中找到)

link 以下是 android 工作室发行列表: https://developer.android.com/studio/archive