ming300
ming300
  • 发布:2016-07-06 08:41
  • 更新:2016-07-06 08:41
  • 阅读:3678

【报Bug】调用摄像头出错

分类:5+ SDK

W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'android.hardware.Camera$Parameters android.hardware.Camera.getParameters()' on a null object reference
W/System.err: at io.dcloud.js.camera.a.<init>(CameraManager.java:71)
W/System.err: at io.dcloud.js.camera.a.a(CameraManager.java:91)
W/System.err: at io.dcloud.js.camera.CameraFeatureImpl.execute(CameraFeatureImpl.java:126)
W/System.err: at io.dcloud.feature.b.a(FeatureMgr.java:314)
W/System.err: at io.dcloud.feature.b.processEvent(FeatureMgr.java:132)
W/System.err: at io.dcloud.common.b.a.dispatchEvent(Core.java:387)
W/System.err: at io.dcloud.common.b.b.i.processEvent(WindowMgr.java:117)
W/System.err: at io.dcloud.common.b.b.g.exec(DHWebview.java:166)
W/System.err: at io.dcloud.common.util.Birdge.exec(Birdge.java:25)
W/System.err: at io.dcloud.common.adapter.ui.AdaWebview.execScript(AdaWebview.java:537)
W/System.err: at io.dcloud.common.adapter.ui.WebJsEvent.handleMessage(WebJsEvent.java:125)
W/System.err: at io.dcloud.common.adapter.ui.WebJsEvent.onJsPrompt(WebJsEvent.java:143)
W/System.err: at com.android.webview.chromium.WebViewContentsClientAdapter.handleJsPrompt(WebViewContentsClientAdapter.java:853)
W/System.err: at org.chromium.android_webview.AwContentsClientBridge.handleJsPrompt(AwContentsClientBridge.java:253)
W/System.err: at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
W/System.err: at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:37)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err: at android.os.Looper.loop(Looper.java:135)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5258)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
W/DCloud_Exception: FeatureMgr.processEvent
java.lang.NullPointerException: Attempt to invoke virtual method 'android.hardware.Camera$Parameters android.hardware.Camera.getParameters()' on a null object reference
at io.dcloud.js.camera.a.<init>(CameraManager.java:71)
at io.dcloud.js.camera.a.a(CameraManager.java:91)
at io.dcloud.js.camera.CameraFeatureImpl.execute(CameraFeatureImpl.java:126)
at io.dcloud.feature.b.a(FeatureMgr.java:314)
at io.dcloud.feature.b.processEvent(FeatureMgr.java:132)
at io.dcloud.common.b.a.dispatchEvent(Core.java:387)
at io.dcloud.common.b.b.i.processEvent(WindowMgr.java:117)
at io.dcloud.common.b.b.g.exec(DHWebview.java:166)
at io.dcloud.common.util.Birdge.exec(Birdge.java:25)
at io.dcloud.common.adapter.ui.AdaWebview.execScript(AdaWebview.java:537)
at io.dcloud.common.adapter.ui.WebJsEvent.handleMessage(WebJsEvent.java:125)
at io.dcloud.common.adapter.ui.WebJsEvent.onJsPrompt(WebJsEvent.java:143)
at com.android.webview.chromium.WebViewContentsClientAdapter.handleJsPrompt(WebViewContentsClientAdapter.java:853)
at org.chromium.android_webview.AwContentsClientBridge.handleJsPrompt(AwContentsClientBridge.java:253)
at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:37)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5258)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
I/console: [ERROR] Uncaught SyntaxError: Unexpected identifier

设备:
台电 TBOOK 10 ID:E6N5

这款android pad 平板只有一个前置摄像头.

调用摄像头拍照的时候出错.

Android-SDK@1.9.9.24608_20160701

2016-07-06 08:41 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复