Problemas al generar mi apk, ERROR: d8 failed

I guess BarcodeScanner together with the QR extension are causing the problem. Maybe you can use an alternative extension to be able to read both, QR and bar codes like this: