Current use version?
当前使用的版本是多少?
3.10.7
Will this problem occur in demo?
Demo能否复现这问题?
可以复现
Describe the problem or provide an error log?
描述问题或提供错误log?
安卓8的手机,在打开拍摄自定义照片或者摄像时,会黑屏,点击拍摄按钮后恢复正常。
但是我集成项目中的camerax的包,可以正常打开。
猜测是CameraX的项目本地包修复了该问题,但是没有publish到maven 库,麻烦发一个版本更新下。谢谢
3条答案
按热度按时间41zrol4v1#
报错日志是
2023-03-09 17:43:18.667 18336-18336/com.lincoln.clutchcn W/System.err: java.lang.IllegalArgumentException: No supported surface combination is found for camera device - Id : 0. May be attempting to bind too many use cases. Existing surfaces: [] New configs: [androidx.camera.core.impl.ImageCaptureConfig@f33b33b, androidx.camera.core.impl.VideoCaptureConfig@4417a58, androidx.camera.core.impl.PreviewConfig@10785ca]
2023-03-09 17:43:18.668 18336-18336/com.lincoln.clutchcn W/System.err: at androidx.camera.lifecycle.LifecycleCameraRepository.bindToLifecycleCamera(LifecycleCameraRepository.java:280)
2023-03-09 17:43:18.668 18336-18336/com.lincoln.clutchcn W/System.err: at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:532)
2023-03-09 17:43:18.668 18336-18336/com.lincoln.clutchcn W/System.err: at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:381)
2023-03-09 17:43:18.668 18336-18336/com.lincoln.clutchcn W/System.err: at com.luck.lib.camerax.CustomCameraView.bindCameraWithUserCases(CustomCameraView.java:685)
2023-03-09 17:43:18.668 18336-18336/com.lincoln.clutchcn W/System.err: at com.luck.lib.camerax.CustomCameraView.bindCameraUseCases(CustomCameraView.java:657)
2023-03-09 17:43:18.668 18336-18336/com.lincoln.clutchcn W/System.err: at com.luck.lib.camerax.CustomCameraView.access$3600(CustomCameraView.java:92)
2023-03-09 17:43:18.668 18336-18336/com.lincoln.clutchcn W/System.err: at com.luck.lib.camerax.CustomCameraView$7.run(CustomCameraView.java:637)
2023-03-09 17:43:18.668 18336-18336/com.lincoln.clutchcn W/System.err: at android.os.Handler.handleCallback(Handler.java:793)
2023-03-09 17:43:18.669 18336-18336/com.lincoln.clutchcn W/System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
2023-03-09 17:43:18.669 18336-18336/com.lincoln.clutchcn W/System.err: at android.os.Looper.loop(Looper.java:173)
2023-03-09 17:43:18.669 18336-18336/com.lincoln.clutchcn W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6698)
2023-03-09 17:43:18.669 18336-18336/com.lincoln.clutchcn W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2023-03-09 17:43:18.669 18336-18336/com.lincoln.clutchcn W/System.err: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
2023-03-09 17:43:18.669 18336-18336/com.lincoln.clutchcn W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
czq61nw12#
@LuckSiege
pbpqsu0x3#
3.11.1 也出现,录视频黑屏
安卓版本是12,荣耀和小米手机上都出现过
我这个和楼主的问题不一样,之前用相机v3.10.8用户没有反馈,升级到3.11.1就反馈了,将版本回退到3.10.8用户返回就没有问题了,应该是升级camerax 1.2.1导致的。