We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
` import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; ...
@TargetApi(23) private void openCameraWithPermission() { if (ContextCompat.checkSelfPermission(this.activity, Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) { barcodeView.resume(); } else if(!askedPermission) { ActivityCompat.requestPermissions(this.activity, new String[]{Manifest.permission.CAMERA}, cameraPermissionReqCode); askedPermission = true; } else { // Wait for permission result } } `
In my gradle; minSdkVersion 19 targetSdkVersion 23 versionCode 22
compile 'com.android.support:support-v4:24.0.0'
I use; zxing-android-embeded-3.2.0
Stack Trace java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/ContextCompat; at com.journeyapps.barcodescanner.CaptureManager.openCameraWithPermission(CaptureManager.java:233)
Cannot resolved ContextCompat and ActivityCompat. My device is android 6.0.0. What should ı do for this error?
The text was updated successfully, but these errors were encountered:
This doesn't relate to this project.
Sorry, something went wrong.
Finger sit .Finger Roll good doggy
No branches or pull requests
`
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
...
@TargetApi(23)
private void openCameraWithPermission() {
if (ContextCompat.checkSelfPermission(this.activity, Manifest.permission.CAMERA)
== PackageManager.PERMISSION_GRANTED) {
barcodeView.resume();
} else if(!askedPermission) {
ActivityCompat.requestPermissions(this.activity,
new String[]{Manifest.permission.CAMERA},
cameraPermissionReqCode);
askedPermission = true;
} else {
// Wait for permission result
}
}
`
In my gradle;
minSdkVersion 19
targetSdkVersion 23
versionCode 22
compile 'com.android.support:support-v4:24.0.0'
I use;
zxing-android-embeded-3.2.0
Stack Trace
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/ContextCompat;
at com.journeyapps.barcodescanner.CaptureManager.openCameraWithPermission(CaptureManager.java:233)
Cannot resolved ContextCompat and ActivityCompat. My device is android 6.0.0. What should ı do for this error?
The text was updated successfully, but these errors were encountered: