You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My android app appears one of the error as below when android studio build apk. error: no suitable constructor found for DefaultDecoderFactory(ArrayList<BarcodeFormat>,<null>,<null>)
I found the error is the constructor of DefaultDecoderFactory. Does someone know how to solve this problem?
public void run() {
// Create our Preview view and set it as the content of our activity.
mBarcodeView = new BarcodeView(cordova.getActivity());
//Configure the decoder
ArrayList<BarcodeFormat> formatList = new ArrayList<BarcodeFormat>();
formatList.add(BarcodeFormat.QR_CODE);
mBarcodeView.setDecoderFactory(new DefaultDecoderFactory(formatList, null, null));
The text was updated successfully, but these errors were encountered:
I midify the constuctor and remove two null parameters. It seems to be ok. But When I build, the errors(as below)are appears in the Build Output Window. Doe someone know how to solve those errors?
My android app appears one of the error as below when android studio build apk.
error: no suitable constructor found for DefaultDecoderFactory(ArrayList<BarcodeFormat>,<null>,<null>)
I found the error is the constructor of DefaultDecoderFactory. Does someone know how to solve this problem?
mBarcodeView.setDecoderFactory(new DefaultDecoderFactory(formatList, null, null));
The text was updated successfully, but these errors were encountered: