Comments (4)
打印信息:
I/Camera (32745): startPreview
E/CameraDevice-0-LE(32745): Surface with size (w=1920, h=1080) and format 0x21 is not valid, size not in valid set: [4160x3120, 4096x2160, 3264x2448, 3200x2400, 3328x1872, 2560x1920, 2560x1440, 2048x1536, 1600x1200, 1280x960, 1280x768, 1280x720, 1024x768, 800x480, 720x480, 640x480, 320x240]
W/CameraDevice-JV-0(32745): Stream configuration failed
E/CameraCaptureSession(32745): Session 0: Failed to create capture session; configuration failed
I/Camera (32745): runPrecaptureSequence
E/MethodChannel#plugins.flutter.io/camera(32745): Failed to handle method call
E/MethodChannel#plugins.flutter.io/camera(32745): java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference
E/MethodChannel#plugins.flutter.io/camera(32745): at io.flutter.plugins.camera.Camera.runPrecaptureSequence(Camera.java:489)
E/MethodChannel#plugins.flutter.io/camera(32745): at io.flutter.plugins.camera.Camera.takePicture(Camera.java:474)
E/MethodChannel#plugins.flutter.io/camera(32745): at io.flutter.plugins.camera.MethodCallHandlerImpl.onMethodCall(MethodCallHandlerImpl.java:114)
E/MethodChannel#plugins.flutter.io/camera(32745): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#plugins.flutter.io/camera(32745): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#plugins.flutter.io/camera(32745): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/MethodChannel#plugins.flutter.io/camera(32745): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#plugins.flutter.io/camera(32745): at android.os.MessageQueue.next(MessageQueue.java:143)
E/MethodChannel#plugins.flutter.io/camera(32745): at android.os.Looper.loop(Looper.java:122)
E/MethodChannel#plugins.flutter.io/camera(32745): at android.app.ActivityThread.main(ActivityThread.java:5305)
E/MethodChannel#plugins.flutter.io/camera(32745): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#plugins.flutter.io/camera(32745): at java.lang.reflect.Method.invoke(Method.java:372)
E/MethodChannel#plugins.flutter.io/camera(32745): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:922)
E/MethodChannel#plugins.flutter.io/camera(32745): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:717)
[CameraPicker - LOG] "Error when preview the captured file: CameraException(error, Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference)"
from flutter_wechat_camera_picker.
尝试官方的 camera 有没有问题。
from flutter_wechat_camera_picker.
试了、官方的 camera 没有问题
from flutter_wechat_camera_picker.
执行 flutter pub upgrade
,确认 pubspec.lock
内 camera
版本与 官方最新一致后,再次尝试。如有问题请录屏,且提供调用栈。
from flutter_wechat_camera_picker.
Related Issues (20)
- [BUG] 拍照时旋转屏幕,拍照内容也没有旋转 HOT 3
- [BUG] When I use the camera to take a picture, after I tap the confirm button, it asked me to authorize the photo library, it's ridiculous. I just want to use camera, no need to save it to my photo library.
- [BUG] When I use the camera to take a picture, after I tap the confirm button, it asked me to authorize the photo library, it's ridiculous. I just want to use camera, no need to save it to my photo library. HOT 2
- VIVO手机反复进入拍照界面黑屏 HOT 1
- [BUG] camera插件报错,不知升级到最新的版本是否会解决,我看目前使用的是0.10.0
- [BUG] Record button not recording video
- Duplicate onEntitySaving call returned HOT 1
- iOS 相机拍照时会旋转的问题
- [BUG] The capture orientation is wrong in ios 17.0.3 HOT 2
- iOS调起相机报错 HOT 1
- [BUG]更新flutter sdk 到3.16.3之后,打开图片选择器,图片没有预览 HOT 1
- [BUG]没有展示出图片 HOT 2
- The number of apps taking up storage space on mobile phones has skyrocketed HOT 1
- java.lang.Throwable:CameraException(setFlashModeFailed, Could not set flash mode.)
- [BUG] Inappropriate handling when access denied HOT 6
- The selected imageFormatGroup is not supported by iOS. Defaulting to brga8888 HOT 4
- [BUG] Can not disable auto-saved to gallery
- create fail, error: Error Domain=PHPhotosErrorDomain Code=3302 "(null)" HOT 5
- [BUG] Error with iPad switching to back camera
- [Feature] AspectRatio/Resolution control HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_wechat_camera_picker.