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

vzu*_*urd 5 macos android-emulator apple-m1

我正在使用带有 M1 芯片的 Macbook Pro。我安装了

Android Studio 4.2.1 Build #AI-202.7660.26.42.7351085,于 2021 年 5 月 10 日构建运行时版本:11.0.8+10-b944.6916264 x86_64 VM:OpenJDK 64-Bit Server VM by N/A GC 16 macOS 10 G1 Young Generation, G1 Old Generation 内存:1280M 内核:8 注册表:external.system.auto.import.disabled=true

我根据this的说明创建了以下设备

名称:Pixel_4_API_S CPU/ABI:Google APIs ARM (arm64-v8a) 路径:/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: 是 image.sysdir.1: system-images/android-S/google_apis/arm64-v8a/ showDeviceFrame:是 hw.camera.back: virtualscene AvdId: Pixel_4_API_S hw.lcd.density: 440 hw.arc: false hw.device.hash2: MD5:6b5943207fe196d842659d2e43022e20 : 是 hw.sdCard: 是 tag.display: Google APIs runtime.network.latency: 无 disk.dataPartition.size: 800M hw.sensors.orientation: 是 avd.ini.encoding: UTF-8 hw.gpu.enabled: 是

虽然我能够运行该设备,但它无法访问互联网,也未启用 Wifi。 在此处输入图片说明 在此处输入图片说明

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

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

小智 4

这对我有用:

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

以下是 android studio 版本列表的链接: https://developer.android.com/studio/archive