Android Marshmallow : java.lang.RuntimeException: Fail to connect to camera service
问题 I am using https://github.com/dlazaro66/QRCodeReaderView (QR code scanner ) in my android application My mainfest permission looks like this : <uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera" /> <uses-feature android:name="android.hardware.camera.autofocus"/> and in Gradle I have the following code : compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.gurkhatech.schoolmanagement" minSdkVersion 15