I had faced the same problem. I tried to fix it by a couple of ways, and both of them eventually worked!!
- Go to onResume() at CaptureActivity.java. Comment the whole function except the line super.onResume(). Next, add the following lines into your activity:
@Override
public void onResume(){super.onResume();
}
- You could use the example from this link - http://khurramitdeveloper.blogspot.in/p/android-barcode-scan-using-zxing-library.html. It works for me without any hitch!