SelfLender / react-native-biometrics

React Native module for iOS and Android biometrics
MIT License
664 stars 229 forks source link

Android does not run when the library is installed #260

Open UmarbekSaidov opened 1 year ago

UmarbekSaidov commented 1 year ago

I installed and used the library, everything was fine, but after doing gradlew clean and remove node_modules and then installing yarn, when I try to run the App, I get the following errors

    buildToolsVersion = "33.0.0"
    minSdkVersion = 21
    compileSdkVersion = 33
    targetSdkVersion = 33

It was working without adding the following permissions to my androidmanifest file, but I added it to see if it would work. It didn't help

<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />

This is error message:

`FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

BUILD FAILED in 9s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

BUILD FAILED in 9s

at makeError (/home/umarbek/ApointProjects/apoint-goods/node_modules/execa/index.js:174:9)
at /home/umarbek/ApointProjects/apoint-goods/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/home/umarbek/ApointProjects/apoint-goods/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/home/umarbek/ApointProjects/apoint-goods/node_modules/@react-native-community/cli/build/index.js:142:9)

info Run CLI with --verbose flag for more details. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command`