ocr 身份证识别改了包名以后崩溃
zzee205 发布于2018-04 浏览:1667 回复:4
0
收藏
java.lang.RuntimeException: startPreview failed
at android.hardware.Camera.startPreview(Native Method)
at com.baidu.ocr.ui.camera.Camera1Control.startPreview(Camera1Control.java:390)
at com.baidu.ocr.ui.camera.Camera1Control.access$100(Camera1Control.java:31)
at com.baidu.ocr.ui.camera.Camera1Control$3.onSurfaceTextureSizeChanged(Camera1Control.java:363)
at android.view.TextureView.onSizeChanged(TextureView.java:328)
at android.view.View.sizeChange(View.java:14932)
at android.view.View.setFrame(View.java:14905)
at android.view.View.layout(View.java:14813)
at com.baidu.ocr.ui.camera.Camera1Control$PreviewView.onLayout(Camera1Control.java:564)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at com.baidu.ocr.ui.camera.CameraView.onLayout(CameraView.java:479)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at com.baidu.ocr.ui.camera.OCRCameraLayout.onLayout(OCRCameraLayout.java:107)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2011)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1768)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1024)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5694)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
at android.view.Choreographer.doCallbacks(Choreographer.java:574)
at android.view.Choreographer.doFrame(Choreographer.java:544)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5019)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
收藏
点赞
0
个赞
共4条回复 最后由赵家_赵三爷回复于2020-08
#5赵家_赵三爷回复于2020-08

我的没改包名,授权是成功的,也是报这个错误

0
#4lichao_86回复于2018-10

相机参数设置错了吧

0
#3追星逐月的家回复于2018-07

授权就是按照包名来授权的

0
#2周俊316回复于2018-04

您好,修改报名后,需要对您的 access token授权进行重新绑定新的包名

0
TOP
切换版块