java.lang.IllegalArgumentException: Suggested resolution map missing resolution for camera 1
add setLensFacing(CameraX.LensFacing.FRONT)
to ImageCaptureConfig
should solve your problem
As an addition to nestos answer, I had to add setLensFacing(CameraX.LensFacing.FRONT)
to both ImageCaptureConfig and PreviewConfig to make this work.