Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置防手都就报错 #40

Open
845479430 opened this issue Feb 20, 2019 · 4 comments
Open

设置防手都就报错 #40

845479430 opened this issue Feb 20, 2019 · 4 comments

Comments

@845479430
Copy link

No description provided.

@18Gray
Copy link
Owner

18Gray commented Mar 18, 2019

加一下log吧,我这没有报错。

@845479430
Copy link
Author

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.hardware.camera2.CaptureRequest$Builder android.hardware.camera2.CameraDevice.createCaptureRequest(int)' on a null object reference
at com.eighteengray.procameralibrary.camera.CaptureRequestFactory.createPreviewBuilder(CaptureRequestFactory.java:25)
at com.eighteengray.procameralibrary.camera.Camera2TextureView.setSteadyPhoto(Camera2TextureView.java:226)
at com.eighteengray.procamera.fragment.Camera2Fragment.onResume(Camera2Fragment.java:145)
@18Gray

@18Gray
Copy link
Owner

18Gray commented Mar 22, 2019

代码提交了,你试下看有没有问题

@845479430
Copy link
Author

@18Gray 还是报错,同样问题。您用Fragment加载相机在低性能手机上会很卡,建议用activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants