android / android/camera-samples
java.lang.IllegalArgumentException: No supported surface combination is found for camera device - Id : 0 and Hardware level: 2
- Dominant language
- Kotlin
- Stars
- 5.5k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
java.lang.IllegalArgumentException: No supported surface combination is found for camera device - Id : 0 and Hardware level: 2. May be the specified resolution is too large and not supported. Existing surfaces: [] New configs: [androidx.camera.core.impl.PreviewConfig@ee5c6b6, androidx.camera.video.impl.VideoCaptureConfig@80e1e51]
I have used same code cameraXVideo and CameraXbasic
Facing this issue on HMD Global Nokia 5.1 Plus Android 10, API 29
Working fine on below devices
Vivo V2027 Android 10, API 29
OPPO CPH1909 Android 8.1.0, API 27
Contributor guide
Research direction
Reproduce the failure using the cameraXVideo and CameraXbasic samples on the Nokia 5.1 Plus running Android 10/API 29, then compare with the listed working devices. Trace the Preview and VideoCapture surface configurations and document a reproducible cause and validated fix or limitation for the affected hardware.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100