'How to use my webcam as emulator camera on android studio ? Windows 11

I have set the front and back camera as webcam0

I have set the front and back camera as webcam0 but when i open 'camera' apps in the emulator it force close and give me this error message,

Unable to start activity ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}

i tried to troubleshoot device connection and here is the result

i have delete the webcam driver and restart my pc, and also update the driver, and i have activated the USB debugging in emulator too. but in the end still same the problem not solved.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source