when i yarn add react-native-vision-camera and run it .but the following errors will occur:
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 androidx.camera:camera-core:1.4.0-alpha04.
Searched in the following locations:
file:/Users/zhengjialu/Desktop/ryapp/ryapp/android/app/libs/camera-core.jar
Required by:
project :app > com.github.jenly1314:zxing-lite:2.1.1
Could not find androidx.camera:camera-camera2:1.4.0-alpha04.
Searched in the following locations:
Question
when i yarn add react-native-vision-camera and run it .but the following errors will occur: FAILURE: Build failed with an exception.
My environment react native 0.68 android/build.gradle buildscript { ext { buildToolsVersion = "29.0.3" minSdkVersion = 24 compileSdkVersion = 30 targetSdkVersion = 30 googlePlayServicesVersion = "11.0.4" isEnableGoogleFCM = false
versionCodeNum = 1048576 versionCodeBaseNum = 151 versionCode = 20220101 googlePlayServicesVersion = '16.+' kotlinVersion = '1.6.10' } repositories { //maven {url "https://maven.google.com"} //google() maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' } jcenter() { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'https://developer.huawei.com/repo/' } jcenter() } dependencies { classpath('com.android.tools.build:gradle:4.1.0') classpath 'com.huawei.agconnect:agcp:1.4.1.300' classpath('com.google.gms:google-services:4.3.2') classpath('com.sensorsdata.analytics.android:android-gradle-plugin2:3.5.2')
}
allprojects { repositories { exclusiveContent { // We get React Native's Android binaries exclusively through npm, // from a local Maven repo inside node_modules/react-native/. // (The use of exclusiveContent prevents looking elsewhere like Maven Central // and potentially getting a wrong version.) filter { includeGroup "com.facebook.react" } forRepository { maven { url "$rootDir/../node_modules/react-native/android" } } } // mavenCentral { // content { // excludeGroup("com.facebook.react") // } // } mavenCentral() mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } // mavenLocal() // maven {url "https://maven.google.com"}
}
What I tried
No response
VisionCamera Version
4.0.1
Additional information