CJT2325 / CameraView

仿微信拍照Android控件(轻触拍照,长按摄像)
Apache License 2.0
2.67k stars 581 forks source link

startPreview failed 这个怎么解决,作者请看看,谢谢! #272

Open lly7690 opened 4 years ago

lly7690 commented 4 years ago

崩溃信息: startPreview failed

类名:Camera.java

方法:startPreview

行数:-2

类型:java.lang.RuntimeException

时间:2020-11-03 15:13

设备名称:PCGM00

设备厂商:OPPO

系统版本:29

全部信息: java.lang.RuntimeException: startPreview failed at android.hardware.Camera.startPreview(Native Method) at com.cjt2325.cameralibrary.CameraInterface.doStartPreview(CameraInterface.java:404) at com.cjt2325.cameralibrary.state.BorrowVideoState.start(BorrowVideoState.java:28) at com.cjt2325.cameralibrary.state.CameraMachine.start(CameraMachine.java:71) at com.cjt2325.cameralibrary.JCameraView.resetState(JCameraView.java:459) at com.cjt2325.cameralibrary.state.BorrowVideoState.cancle(BorrowVideoState.java:70) at com.cjt2325.cameralibrary.state.CameraMachine.cancle(CameraMachine.java:111) at com.cjt2325.cameralibrary.JCameraView$2.onClick(JCameraView.java:182) at android.view.View.performClick(View.java:7261) at android.view.View.performClickInternal(View.java:7223) at android.view.View.access$3800(View.java:824) at android.view.View$PerformClick.run(View.java:27721) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:238) at android.app.ActivityThread.main(ActivityThread.java:7798) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995) @CJT2325