Android 使用torch后无法使用条形码扫描仪

Android 使用torch后无法使用条形码扫描仪,android,cordova,phonegap-plugins,barcode-scanner,Android,Cordova,Phonegap Plugins,Barcode Scanner,我正在使用PhoneGap2.5,我已经下载了条形码扫描仪和火炬的最新版本。如果我使用手电筒,然后尝试扫描图像,我会得到“对不起,Android摄像头遇到问题。您可能需要重新启动设备。”。我在想,手电筒是放不下手电筒的。。如果你同意这是一个问题,有人知道一种强制发布它的方法吗 03-29 16:36:53.094: I/dalvikvm-heap(15000): Grow heap (frag case) to 13.967MB for 3686416-byte allocation 03-29

我正在使用PhoneGap2.5,我已经下载了条形码扫描仪和火炬的最新版本。如果我使用手电筒,然后尝试扫描图像,我会得到“对不起,Android摄像头遇到问题。您可能需要重新启动设备。”。我在想,手电筒是放不下手电筒的。。如果你同意这是一个问题,有人知道一种强制发布它的方法吗

03-29 16:36:53.094: I/dalvikvm-heap(15000): Grow heap (frag case) to 13.967MB for 3686416-byte allocation
03-29 16:36:53.104: W/MediaPlayer-JNI(15000): MediaPlayer finalized without being released
03-29 16:36:53.104: W/MediaPlayer-JNI(15000): MediaPlayer finalized without being released
03-29 16:36:53.104: W/MediaPlayer-JNI(15000): MediaPlayer finalized without being released
03-29 16:36:53.114: W/MediaPlayer-JNI(15000): MediaPlayer finalized without being released
03-29 16:36:53.114: W/MediaPlayer-JNI(15000): MediaPlayer finalized without being released
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.204: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.214: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.224: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.224: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x00000000
03-29 16:36:53.234: I/PlatformSupportManager(15000): Using implementation class com.google.zxing.client.android.common.executor.HoneycombAsyncTaskExecInterface of interface com.google.zxing.client.android.common.executor.AsyncTaskExecInterface for SDK 11
03-29 16:36:53.404: I/PlatformSupportManager(15000): Using implementation class com.google.zxing.client.android.camera.open.GingerbreadOpenCameraInterface of interface com.google.zxing.client.android.camera.open.OpenCameraInterface for SDK 9
03-29 16:36:53.404: I/GingerbreadOpenCamera(15000): Opening camera #0
03-29 16:36:53.414: W/CaptureActivity(15000): Unexpected error initializing camera
03-29 16:36:53.414: W/CaptureActivity(15000): java.lang.RuntimeException: Fail to connect to camera service
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.hardware.Camera.native_setup(Native Method)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.hardware.Camera.<init>(Camera.java:340)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.hardware.Camera.open(Camera.java:302)
03-29 16:36:53.414: W/CaptureActivity(15000):   at com.google.zxing.client.android.camera.open.GingerbreadOpenCameraInterface.open(GingerbreadOpenCameraInterface.java:57)
03-29 16:36:53.414: W/CaptureActivity(15000):   at com.google.zxing.client.android.camera.CameraManager.openDriver(CameraManager.java:78)
03-29 16:36:53.414: W/CaptureActivity(15000):   at com.google.zxing.client.android.CaptureActivity.initCamera(CaptureActivity.java:701)
03-29 16:36:53.414: W/CaptureActivity(15000):   at com.google.zxing.client.android.CaptureActivity.surfaceCreated(CaptureActivity.java:384)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.SurfaceView.updateWindow(SurfaceView.java:569)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.SurfaceView.access$000(SurfaceView.java:86)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:174)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:680)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1842)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.Choreographer.doCallbacks(Choreographer.java:562)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.Choreographer.doFrame(Choreographer.java:532)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.os.Handler.handleCallback(Handler.java:725)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.os.Handler.dispatchMessage(Handler.java:92)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.os.Looper.loop(Looper.java:137)
03-29 16:36:53.414: W/CaptureActivity(15000):   at android.app.ActivityThread.main(ActivityThread.java:5234)
03-29 16:36:53.414: W/CaptureActivity(15000):   at java.lang.reflect.Method.invokeNative(Native Method)
03-29 16:36:53.414: W/CaptureActivity(15000):   at java.lang.reflect.Method.invoke(Method.java:525)
03-29 16:36:53.414: W/CaptureActivity(15000):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
03-29 16:36:53.414: W/CaptureActivity(15000):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
03-29 16:36:53.414: W/CaptureActivity(15000):   at dalvik.system.NativeStart.main(Native Method)
03-29 16:36:53.424: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x01030042
03-29 16:36:53.424: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x01030042
03-29 16:36:53.434: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x01030044
03-29 16:36:53.434: W/asset(15000): deep redirect failure from 0x01030046 => 0x0208000c, defStyleAttr=0x01010084, defStyleRes=0x01030022, style=0x01030044
03-29 16:36:53.094:I/dalvikvm堆(15000):将堆(frag case)增长到13.967MB,用于3686416字节分配
03-29 16:36:53.104:W/MediaPlayer JNI(15000):MediaPlayer最终定稿,未发布
03-29 16:36:53.104:W/MediaPlayer JNI(15000):MediaPlayer最终定稿,未发布
03-29 16:36:53.104:W/MediaPlayer JNI(15000):MediaPlayer最终定稿,未发布
03-29 16:36:53.114:W/MediaPlayer JNI(15000):MediaPlayer未发布即已定稿
03-29 16:36:53.114:W/MediaPlayer JNI(15000):MediaPlayer未发布即已定稿
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.204:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.214:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.224:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.224:W/asset(15000):来自0x01030046=>0x020800C的深度重定向失败,defStyleAttr=0x01010084,defStyleRes=0x01030022,style=0x00000000
03-29 16:36:53.234:I/PlatformSupportManager(15000):为SDK 11使用接口com.google.zxing.common.executor.HoneycomAsyncTaskExecInterface的实现类com.google.zxing.client.android.common.executor.AsyncTaskExecInterface
03-29 16:36:53.404:I/PlatformSupportManager(15000):使用SDK 9接口com.google.zxing.client.android.camera.open.GingerbreadOpenCameraInterface的实现类com.google.zxing.client.android.camera.open.OpenCameraInterface
03-29 16:36:53.404:I/GingerbreadOpenCamera(15000):打开摄像头#0
03-29 16:36:53.414:W/CaptureActivity(15000):初始化摄像头时出现意外错误
03-29 16:36:53.414:W/CaptureActivity(15000):java.lang.RuntimeException:无法连接到摄像头服务
03-29 16:36:53.414:W/CaptureActivity(15000):在android上。硬件。摄像头。本机设置(本机方法)
03-29 16:36:53.414:W/CaptureActivity(15000):在android.hardware.Camera。(Camera.java:340)
03-29 16:36:53.414:W/CaptureActivity(15000):在android.hardware.Camera.open(Camera.java:302)上
03-29 16:36:53.414:W/CaptureActivity(15000):在com.google.zxing.client.android.camera.open.GingerbreadOpenCameraInterface.open(GingerbreadOpenCameraInterface.java:57)
03-29 16:36:53.414:W/CaptureActivity(15000):位于com.google.zxing.client.android.camera.CameraManager.openDriver(CameraManager.java:78)
03-29 16:36:53.414:W/CaptureActivity(15000):位于com.google.zxing.client.android.CaptureActivity.initCamera(CaptureActivity.java:701)
03-29 16:36:53.414:W/CaptureActivity(15000):在com.google.zxing.client.android.Capt