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

标签 macos android-emulator apple-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。
enter image description here
enter image description here
即使我打开 Wifi,它也会关闭。我还尝试根据互联网搜索显示的内容添加 DNS。我尝试重新启动、打开和关闭 Wifi 以及设备。
enter image description here
似乎没有任何效果。我错过了什么吗?

最佳答案

这对我有用:

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

  • 这是 android studio 发布列表的链接:
    https://developer.android.com/studio/archive

    关于macos - Android 模拟器未在 Mac M1 中显示默认的 Android Wifi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68049864/

    相关文章:

    ios - 未找到模块 'audio_session'

    ruby 和 "You must recompile Ruby with OpenSSL support or change the sources in your Gemfile"

    node.js - 没有 sudo 无法使用 NPM

    android - 您可以将数据库从 Android 设备传输到计算机上以用作 Android 虚拟设备中的数据库吗

    android - 就我而言,如何将一种布局嵌入另一种布局?

    python - M1 Mac 返回 OSError : Library not loaded

    macos - 从 Bash shell 脚本发送邮件

    macos - 用于通过SSH管理Redis的桌面客户端

    android - BitmapFun 示例应用程序中的图像缓存 - 此检查背后的基本原理是什么

    python - Tensorflow 对象检测 Api M1 Macbook 冲突错误