Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in HostObject::get for prop 'ReactNativeBiometrics': java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/biometric/BiometricPrompt$PromptInfo; #280

Open
batu0b opened this issue Feb 15, 2024 · 0 comments

Comments

@batu0b
Copy link

batu0b commented Feb 15, 2024

I get this error when I import the library, I can't find a solution, can you help me?

import ReactNativeBiometrics, {BiometryTypes} from 'react-native-biometrics';
  const testBiometric = async () => {
    const rnBiometrics = new ReactNativeBiometrics({
      allowDeviceCredentials: true,
    });

    const {biometryType} = await rnBiometrics.isSensorAvailable();

    if (biometryType === BiometryTypes.Biometrics) {
      console.log('test');
    }
  };

I used it to test this way but as soon as I import ReactNativeBiometrics this issue appears

Exception in HostObject::get for prop 'ReactNativeBiometrics': 
java.lang.NoClassDefFoundError:
Failed resolution of: Landroidx/biometric/BiometricPrompt$PromptInfo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant