简体   繁体   English

Flutter 相机问题 android 版本 13

[英]Flutter camera issue in android version 13

In android 13 we are facing the below issue we are using this third party camera plugin ( https://pub.dev/packages/camera ), I would really appreciate the help to solve the issue, Do we need to make some changes in our android version?在 android 13 我们面临以下问题,我们正在使用这个第三方相机插件 ( https://pub.dev/packages/camera ),我非常感谢帮助解决这个问题,我们需要做一些改变吗我们的 android 版本?

E/flutter (14764): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: CameraException(error, Attempt to invoke virtual method 'int android.media.EncoderProfiles$VideoProfile.getWidth()' on a null object reference) E/flutter (14764): #0 AndroidCamera.createCamera (package:camera_android/src/android_camera.dart:112:7) E/flutter (14764): E/flutter (14764): #1 CameraController.initialize (package:camera/src/camera_controller.dart:291:19) E/flutter (14764): E/flutter (14764): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] 未处理的异常: CameraException(error, Attempt to invoke virtual method 'int android.media.EncoderProfiles$VideoProfile.getWidth()' on a null object 参考) E/flutter (14764): #0 AndroidCamera.createCamera (package:camera_android/src/android_camera.dart:112:7) E/flutter (14764): E/flutter (14764): #1 CameraController.initialize (包:相机/src/camera_controller.dart:291:19) E/flutter (14764):

It's a well known issue that is being tracked here: https://github.com/flutter/flutter/issues/109769 some people came with a solution ( that I haven't tried ) but as of the current state the issue is still not fixed in the latest package version这是一个众所周知的问题,正在此处跟踪: https://github.com/flutter/flutter/issues/109769有些人提出了解决方案(我还没有尝试过)但截至目前 state 问题仍然存在最新的package版本没有修复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM