二维码扫描本地相册出错

标签: #<Tag:0x00007f657db7c0e8> #<Tag:0x00007f657ef6fc30>

扫描二维码时报错

12-03 23:12:01.276 248-7705/? E/FileSource: Failed to open file ‘/system/media/audio/ui/camera_click.ogg’. (No such file or directory)
12-03 23:12:01.276 248-7705/? E/GenericSource: Failed to create data source!
12-03 23:12:01.277 248-7704/? E/MediaPlayer: error (1, -2147483648)
12-03 23:12:01.277 248-7707/? E/FileSource: Failed to open file ‘/system/media/audio/ui/VideoRecord.ogg’. (No such file or directory)
12-03 23:12:01.277 248-7707/? E/GenericSource: Failed to create data source!
12-03 23:12:01.277 248-7706/? E/MediaPlayer: error (1, -2147483648)
12-03 23:12:01.278 248-7709/? E/FileSource: Failed to open file ‘/system/media/audio/ui/VideoStop.ogg’. (No such file or directory)
12-03 23:12:01.278 248-7709/? E/GenericSource: Failed to create data source!
12-03 23:12:01.278 248-7708/? E/MediaPlayer: error (1, -2147483648)
12-03 23:12:01.286 248-657/? E/EmulatedCamera_GenyClient: queryConnect: Query failed: No error message
12-03 23:12:01.286 248-657/? E/EmulatedCamera_GenyDevice: connectDevice: Connection to device ‘back’ failed
12-03 23:12:01.286 248-657/? E/CameraClient: Could not open camera 0: -22
12-03 23:12:01.286 248-657/? E/CameraClient: initialize: Camera 0: unable to initialize device: Invalid argument (-22)
12-03 23:12:01.286 248-657/? E/CameraService: connectHelper: Could not initialize client from HAL module.
12-03 23:12:10.003 565-591/? E/KernelUidCpuTimeReader: Failed to read uid_cputime: /proc/uid_cputime/show_uid_stat: open failed: ENOENT (No such file or directory)
12-03 23:12:11.730 7419-7457/io.jchat.android E/EGL_emulation: egl: current context mark for deletion
12-03 23:12:14.337 7419-7777/io.jchat.android E/AndroidRuntime: FATAL EXCEPTION: Thread-239
Process: io.jchat.android, PID: 7419
java.lang.NullPointerException: Attempt to invoke interface method ‘java.lang.Object java.util.Map.put(java.lang.Object, java.lang.Object)’ on a null object reference
at jiguang.chat.utils.zxing.ScanManager$1.run(ScanManager.java:285)
at java.lang.Thread.run(Thread.java:818)
12-03 23:12:14.386 565-655/? E/InputDispatcher: channel ‘5e55c8f io.jchat.android/jiguang.chat.activity.MainActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!
12-03 23:12:14.386 565-655/? E/InputDispatcher: channel ‘c753576 io.jchat.android/jiguang.chat.activity.CommonScanActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!
12-03 23:12:14.386 565-655/? E/InputDispatcher: channel ‘3d15ed9 PopupWindow:ce49407 (server)’ ~ Channel is unrecoverably broken and will be disposed!

你是使用的 JChat 吗?

我在 Android 手机上测试没有问题。你是在什么手机机型和系统?是否有允许读取相册相关的权限。