0

I'm trying to use my webcam as camera for android emulator. For some reason, it's not working. I followed everything that people suggested, and it's still not working. See config file below.

camera error

android setup

AvdId=Pixel_5_API_27_test
PlayStore.enabled=false
abi.type=x86
avd.ini.displayname=Pixel 5 API 27_test
avd.ini.encoding=UTF-8
disk.dataPartition.size=800M
fastboot.chosenSnapshotFile=
fastboot.forceChosenSnapshotBoot=no
fastboot.forceColdBoot=yes
fastboot.forceFastBoot=no
hw.accelerometer=yes
hw.arc=false
hw.audioInput=yes
hw.battery=yes
hw.camera.back=webcam0
hw.camera.front=webcam0
hw.cpu.arch=x86
hw.cpu.ncore=4
hw.dPad=no
hw.device.hash2=MD5:3274126e0242a0d86339850416b0ce34
hw.device.manufacturer=Google
hw.device.name=pixel_5
hw.gps=yes
hw.gpu.enabled=yes
hw.gpu.mode=auto
hw.initialOrientation=Portrait
hw.keyboard=yes
hw.lcd.density=440
hw.lcd.height=2340
hw.lcd.width=1080
hw.mainKeys=no
hw.ramSize=4096
hw.sdCard=yes
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\user1\.android\avd\Pixel_5_API_27_test.avd\sdcard.img
sdcard.size=4 GB
showDeviceFrame=yes
skin.dynamic=yes
skin.name=1080x2340
skin.path=_no_skin
tag.display=Google APIs
tag.id=google_apis
vm.heapSize=256
  • I'm sorry I don't have the source but I read that having the same camera as both front and back causes problems - this is the case here according to the linked image. I can't be entirely sure as I have other problems myself but that's what I read. UPDATE: purely by chance I found a question discussing the same issue https://stackoverflow.com/a/30792615/364088 - some people say it's a problem and some people say it isn't so it's up to you to decide but I mention it as it might be worth bearing in mind. – glaucon Nov 30 '21 at 05:02

0 Answers0