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

view_scan_layout: Error inflating class me.devilsen.czxing.view.scanview.DetectView #161

Closed
hiiragi233 opened this issue Apr 17, 2023 · 1 comment

Comments

@hiiragi233
Copy link

debug的时候报的错
Caused by: android.view.InflateException: Binary XML file line #6 in com.example.accountbook:layout/activity_camera_scan: Binary XML file line #6 in com.example.accountbook:layout/activity_camera_scan: Error inflating class me.devilsen.czxing.view.scanview.ScanLayout Caused by: android.view.InflateException: Binary XML file line #6 in com.example.accountbook:layout/activity_camera_scan: Error inflating class me.devilsen.czxing.view.scanview.ScanLayout Caused by: android.view.InflateException: Binary XML file line #6 in com.example.accountbook:layout/view_scan_layout: Error inflating class me.devilsen.czxing.view.scanview.DetectView Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.hardware.Camera.setPreviewDisplay(android.view.SurfaceHolder)' on a null object reference
搞了好半天没弄出来,是什么情况呀

@hiiragi233
Copy link
Author

1.2.0版本的有这个问题,换成1.1.0就好了

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

1 participant