【发布时间】:2018-02-27 09:02:33
【问题描述】:
事件日志中的错误消息:
Emulator: emulator: ERROR: cmd_camera_device_start_capturing: Unable to set video format: 0
Emulator: emulator: ERROR: _camera_client_start: Cannot start camera 'AndroidEmulatorVC0' for NV21[1280x720]: No error
模拟器配置:
config.ini
AvdId=Pixel_2_XL_API_27
PlayStore.enabled=false
abi.type=x86
avd.ini.displayname=Pixel 2 XL API 27
avd.ini.encoding=UTF-8
disk.dataPartition.size=800M
fastboot.forceColdBoot=no
hw.accelerometer=yes
hw.audioInput=yes
hw.battery=yes
hw.camera.back=emulated
hw.camera.front=webcam0
hw.cpu.arch=x86
hw.cpu.ncore=2
hw.dPad=no
hw.device.hash2=MD5:1a4fa6b2569f0b76bfb9824b6b6fc976
hw.device.manufacturer=Google
hw.device.name=pixel_2_xl
hw.gps=yes
hw.gpu.enabled=yes
hw.gpu.mode=auto
hw.initialOrientation=Portrait
hw.keyboard=yes
hw.lcd.density=560
hw.lcd.height=2880
hw.lcd.width=1440
hw.mainKeys=no
hw.ramSize=1536
hw.sdCard=no
hw.sensors.orientation=yes
hw.sensors.proximity=yes
hw.trackBall=no
image.sysdir.1=system-images\android-27\google_apis\x86\
runtime.network.latency=none
runtime.network.speed=full
sdcard.path=C:\Users\h193409\.android\avd\Pixel_2_XL_API_27.avd\sdcard.img
sdcard.size=1 GiB
showDeviceFrame=yes
skin.dynamic=yes
skin.name=pixel_2_xl
skin.path=C:\Android\Sdk\skins\pixel_2_xl
tag.display=Google APIs
tag.id=google_apis
vm.heapSize=256
观察:在模拟器中启动相机应用程序时,网络摄像头附近的 LED 灯开始闪烁约 10 秒。
网络摄像头可与系统中的其他程序完美配合,如 Skype、chrome 浏览器
【问题讨论】:
标签: android android-emulator avd