If you are in a newer version of react-native, which will use gradle 7.0 or above.
With older version of barcode-scanning
com.google.mlkit:barcode-scanning:16.2.0
it will crash once it find one or more barcode.
Please bump the version to
com.google.mlkit:barcode-scanning:17.0.2
And change the import of Barcode from
import com.google.mlkit.vision.barcode.Barcode;
to
import com.google.mlkit.vision.barcode.common.Barcode;
as they change the import path of Barcode
Please help to check if these changes breaks when you are still in a older react-native/gradle version.
If you are in a newer version of react-native, which will use gradle 7.0 or above.
With older version of barcode-scanning com.google.mlkit:barcode-scanning:16.2.0 it will crash once it find one or more barcode.
Please bump the version to com.google.mlkit:barcode-scanning:17.0.2
And change the import of Barcode from import com.google.mlkit.vision.barcode.Barcode; to import com.google.mlkit.vision.barcode.common.Barcode; as they change the import path of Barcode
Please help to check if these changes breaks when you are still in a older react-native/gradle version.