CameraX.bindToLifecycle()发生错误 [英] an error occurred by CameraX.bindToLifecycle()

查看:1626
本文介绍了CameraX.bindToLifecycle()发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


java.lang.IllegalArgumentException:没有为相机设备找到支持的表面组合
-ID:0。可能试图在许多用例中绑定太多的

java.lang.IllegalArgumentException: No supported surface combination is found for camera device - Id : 0. May be attempting to bind too many use cases.

为什么 bindToLifecycle()只选择 imageCapture videoCapture

 CameraX.bindToLifecycle(lifecycleOwner, mPreview, imageCapture,videoCapture)


推荐答案

没有 videoCapture 用例。

官方文档,可用的用例是预览,分析和图像捕获(及其组合)。

As mentioned in the official documentation, the available usecases are preview, analysis & image capture (and their combinations).

这篇关于CameraX.bindToLifecycle()发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆