Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android 7.0 手机 第一次运行的时候闪退 第二次运行就正常 #50

Closed
coolyunyun opened this issue Jun 2, 2017 · 3 comments

Comments

@coolyunyun
Copy link

android 7.0 手机 第一次运行的时候闪退 第二次运行就正常
targetSdkVersion 25的情况下
前置摄像头点了没反映
测试版本 1.0.9

E/AndroidRuntime: FATAL EXCEPTION: Thread-19
java.lang.RuntimeException: Fail to connect to camera service
at android.hardware.Camera.(Camera.java:571)
at android.hardware.Camera.open(Camera.java:415)
at com.cjt2325.cameralibrary.CameraInterface.openCamera(CameraInterface.java:253)
at com.cjt2325.cameralibrary.CameraInterface.doOpenCamera(CameraInterface.java:247)
at com.cjt2325.cameralibrary.JCameraView$6.run(JCameraView.java:572)

@CJT2325
Copy link
Owner

CJT2325 commented Jun 2, 2017

你使用的是我的demo的apk还是自己集成的?

@coolyunyun
Copy link
Author

targetSdkVersion 22就没问题
targetSdkVersion 25的情况第一次就会闪退 第二次运行就正常

@CJT2325 CJT2325 closed this as completed Jun 7, 2017
@chenjunyubt
Copy link

使用现有 1.1.9 也同样还存在这个问题呢? 楼主怎么解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants