You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MacOS Sonoma下Android Studio模拟器摄像头无法连接问题求助

MacOS Sonoma下Android Studio模拟器摄像头连接问题解决方法

这个问题的核心是MacOS Sonoma对Continuity Camera的API做了变更,Android Studio稳定版的模拟器还没适配新的权限规则。以下是几种可行的解决办法:

  • 切换到Android Studio Canary预览版
    谷歌已经在Canary版本中修复了Sonoma系统的摄像头适配问题,安装最新的Canary版本后,重启模拟器即可正常使用Mac摄像头。

  • 手动修改模拟器的Info.plist文件(稳定版适用)
    如果你不想切换预览版,可以手动修改模拟器的配置文件来适配新规则:

    1. 定位到模拟器的应用包:/Applications/Android Studio.app/Contents/plugins/android/lib/emulator/qemu/darwin-x86_64/qemu-system-x86_64.app
    2. 右键选择「显示包内容」,打开Contents/Info.plist文件
    3. 在文件中添加以下配置:
      <key>NSCameraUseContinuityCameraDeviceType</key>
      <true/>
      
      若文件中存在AVCaptureDeviceTypeExternal相关配置,将其替换为AVCaptureDeviceTypeContinuityCamera
    4. 保存修改后,重启Android Studio和模拟器
  • 检查并确认摄像头权限
    确保Android Studio已获得Mac的摄像头访问权限:

    1. 打开「系统设置」→「隐私与安全性」→「摄像头」
    2. 确认Android Studio在权限列表中,且开关处于开启状态

内容的提问来源于stack exchange,提问作者user22657940

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.09 16:47:02