Android 模拟器无法使用 "unrecognized pixel format error" 连接到网络摄像头

Android Emulator cannot connect to webcam with "unrecognized pixel format error"

将我的 macbook 升级到 Yosemite 后,每当我启动 android 模拟器时,我都会遇到以下错误。我已经尝试了所有设置组合,但都报告了相同的错误。任何启动内置​​相机应用程序或在我自己的应用程序中使用相机的尝试都会导致崩溃。以下是模拟器启动时出现的错误。使用额外的调试标志运行模拟器不会产生任何额外的有用信息。

emulator: ERROR: Unrecognized pixel format 'v024'
emulator: ERROR: Pixel format 'v024' reported by the camera device is unsupported

这是我的模拟器配置之一的示例:

Name: Nexus_5_API_21
CPU/ABI: Google APIs Intel Atom (x86_64)
Path: /Users/rob/.android/avd/Nexus_5_API_21.avd
Target: Google APIs (API level 21)
Skin: nexus_5
SD Card: 100M
Snapshot: no
hw.lcd.density: 480
hw.dPad: no
avd.ini.encoding: UTF-8
hw.camera.back: webcam0
disk.dataPartition.size: 200M
hw.gpu.enabled: yes
runtime.network.latency: none
skin.dynamic: no
hw.keyboard: yes
runtime.network.speed: full
hw.device.hash2: MD5:2fa0e16c8cceb7d385183284107c0c88
hw.ramSize: 1536
tag.id: google_apis
tag.display: Google APIs
hw.sdCard: yes
hw.device.manufacturer: Google
hw.mainKeys: no
hw.accelerometer: yes
hw.trackBall: no
hw.device.name: Nexus 5
hw.sensors.proximity: yes
hw.battery: yes
AvdId: Nexus_5_API_21
hw.sensors.orientation: yes
hw.audioInput: yes
hw.camera.front: none
hw.gps: yes
avd.ini.displayname: Nexus 5 API 21
snapshot.present: no
vm.heapSize: 64
runtime.scalefactor: auto

网络摄像头适用于其他应用程序,例如 photobooth 或 facetime。

非常感谢任何关于如何解决此错误的想法。

我有同样的错误。我通过打开 Photo Booth 应用程序修复了它,然后在后台有 Photo Booth 的情况下重新启动了 AVD。