Discussions

Ask a Question
Back to All

Could not find fingerprint dependency in react native

I'm getting could not find fingerprint dependency in running react native package.

I'm just adding the fingerprintjs package in the npm and running it but getting the following error

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.fingerprint.android:pro:2.3.4.
     Searched in the following locations:
       - https://oss.sonatype.org/content/repositories/snapshots/com/fingerprint/android/pro/2.3.4/pro-2.3.4.pom
       - https://repo.maven.apache.org/maven2/com/fingerprint/android/pro/2.3.4/pro-2.3.4.pom
       - file:/Users/varshini/project/finger_print/AwesomeProject/node_modules/jsc-android/dist/com/fingerprint/android/pro/2.3.4/pro-2.3.4.pom
       - https://dl.google.com/dl/android/maven2/com/fingerprint/android/pro/2.3.4/pro-2.3.4.pom
       - https://www.jitpack.io/com/fingerprint/android/pro/2.3.4/pro-2.3.4.pom
     Required by:
         project :app > project :fingerprintjs_fingerprintjs-pro-react-native

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 4s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.fingerprint.android:pro:2.3.4. Searched in the following locations: - https://oss.sonatype.org/content/repositories/snapshots/com/fingerprint/android/pro/2.3.4/pro-2.3.4.pom - https://repo.maven.apache.org/maven2/com/fingerprint/android/pro/2.3.4/pro-2.3.4.pom - file:/Users/varshini/project/finger_print/AwesomeProject/node_modules/jsc-android/dist/com/fingerprint/android/pro/2.3.4/pro-2.3.4.pom - https://dl.google.com/dl/android/maven2/com/fingerprint/android/pro/2.3.4/pro-2.3.4.pom - https://www.jitpack.io/com/fingerprint/android/pro/2.3.4/pro-2.3.4.pom Required by: project :app > project :fingerprintjs_fingerprintjs-pro-react-native * Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org. BUILD FAILED in 4s.
info Run CLI with --verbose flag for more details

Im using fingerprint 3.0.0 npm version