I had a problem in my app but then I tested in the sample app. I have the same error, so I hope you can reproduce the bug easily.
When mode is Mode.Picture or Mode.Video, its working fine.
io.ak1.pixsample E/CameraXBasic: Use case binding failed
java.lang.IllegalArgumentException: No supported surface combination is found for camera device - Id : 1. May be attempting to bind too many use cases. Existing surfaces: [] New configs: [androidx.camera.core.impl.PreviewConfig@70dd0ad, androidx.camera.core.impl.ImageCaptureConfig@944bfe2, androidx.camera.core.impl.VideoCaptureConfig@f88bf73]
at androidx.camera.lifecycle.LifecycleCameraRepository.bindToLifecycleCamera(LifecycleCameraRepository.java:278)
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:459)
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:288)
at io.ak1.pix.helpers.CameraXManager.bindCameraUseCases(CameraXManager.kt:169)
at io.ak1.pix.helpers.CameraXManager.setUpCamera$lambda-0(CameraXManager.kt:55)
at io.ak1.pix.helpers.CameraXManager.lambda$saIgVXdcX8hBqOG6Idaj-FlC7bY(Unknown Source:0)
at io.ak1.pix.helpers.-$$Lambda$CameraXManager$saIgVXdcX8hBqOG6Idaj-FlC7bY.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I had a problem in my app but then I tested in the sample app. I have the same error, so I hope you can reproduce the bug easily. When mode is Mode.Picture or Mode.Video, its working fine.
Screenshots
Smartphone:
Logcat: