테스트 중 아래 메시지가 나와서 확인해보니 외부 카메라(usb)를 지원하지 않아서 발생하는 문제라고 합니다. ㅠ
2022-05-13 10:07:44.971 21693-21727/github.hongbeomi.macgyver E/AndroidRuntime: FATAL EXCEPTION: CameraX-core_camera_0
Process: github.hongbeomi.macgyver, PID: 21693
java.lang.NumberFormatException: For input string: "/dev/video0"
at java.lang.Integer.parseInt(Integer.java:604)
at java.lang.Integer.parseInt(Integer.java:650)
at androidx.camera.camera2.internal.SupportedSurfaceCombination.getRecordSize(SupportedSurfaceCombination.java:1144)
at androidx.camera.camera2.internal.SupportedSurfaceCombination.generateSurfaceSizeDefinition(SupportedSurfaceCombination.java:1104)
at androidx.camera.camera2.internal.SupportedSurfaceCombination.init(SupportedSurfaceCombination.java:707)
at androidx.camera.camera2.internal.SupportedSurfaceCombination.<init>(SupportedSurfaceCombination.java:93)
at androidx.camera.camera2.internal.Camera2DeviceSurfaceManager.init(Camera2DeviceSurfaceManager.java:86)
at androidx.camera.camera2.internal.Camera2DeviceSurfaceManager.<init>(Camera2DeviceSurfaceManager.java:73)
at androidx.camera.camera2.internal.Camera2DeviceSurfaceManager.<init>(Camera2DeviceSurfaceManager.java:66)
at androidx.camera.camera2.-$$Lambda$Jchh7dmkbU2YkOAy9FHQgTPDJjM.newInstance(Unknown Source:2)
at androidx.camera.core.CameraX.lambda$initInternal$5$CameraX(CameraX.java:964)
at androidx.camera.core.-$$Lambda$CameraX$hUylWSxAF___XtbXKzvLZpgS9yE.run(Unknown Source:8)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
'개발 > Android' 카테고리의 다른 글
[Android] MultiDex 로 64K 메서드 제한 해결하기 (0) | 2022.05.16 |
---|---|
[Android] StatusBar의 아이콘 색상 변경 (0) | 2022.05.16 |
Android INSTALL_FAILED_SHARED_USER_INCOMPATIBLE (0) | 2022.05.16 |
Android Studio 셋팅 초기화 (0) | 2022.05.13 |
[android] Webview Header추가 (0) | 2022.05.13 |
댓글