React native OnGoogleVisionBarCodes检测到错误反应本机

React native OnGoogleVisionBarCodes检测到错误反应本机,react-native,barcode-scanner,react-native-camera,React Native,Barcode Scanner,React Native Camera,我正在尝试使用react native实现google mlkit条形码扫描仪,但当我尝试执行OnGoogleVisionBarcodes时,检测到它在应用程序上抛出错误:找不到com.google.android.gms.internal.zzbgl的类文件 这是我的密码 <RNCamera style={styles.preview} onBarCodeRead={this.onBarCodeRead} onGoogleVisionBa

我正在尝试使用react native实现google mlkit条形码扫描仪,但当我尝试执行OnGoogleVisionBarcodes时,检测到它在应用程序上抛出错误:找不到com.google.android.gms.internal.zzbgl的类文件

这是我的密码

 <RNCamera
        style={styles.preview}
        onBarCodeRead={this.onBarCodeRead}
        onGoogleVisionBarcodesDetected={(e) => {
          console.warn(e);
        }}
        captureAudio={false}
        ref={(cam) => (this.camera = cam)}
        // aspect={RNCamera.constants.Aspect.fill}
      >
        <Text
          style={{
            backgroundColor: 'white',
          }}>
          BARCODE SCANNER
        </Text>
      </RNCamera>
我在底部也加了

apply plugin: 'com.google.gms.google-services'

apply plugin: 'com.google.gms.google-services'