mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
6.62k stars 980 forks source link

💭4.0.1 unable to run #2817

Closed zhengjialu520 closed 2 weeks ago

zhengjialu520 commented 2 weeks ago

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')

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

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"}

    maven { url 'https://maven.aliyun.com/repository/google' }
    maven { url 'https://maven.aliyun.com/repository/jcenter' }

    maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
    maven() { url 'https://maven.aliyun.com/repository/jcenter' }
    maven { url 'http://developer.huawei.com/repo/' }
    maven { url "https://jitpack.io" }    // used for MPAndroidChart
    maven {
        // Android JSC is installed from npm
        url("$rootDir/../node_modules/jsc-android/dist")
    }

    maven { url 'https://repo1.maven.org/maven2' }
    maven { url 'https://www.jitpack.io' }
    //maven { url 'https://dl.bintray.com/umsdk/release' }  
}
subprojects {
    afterEvaluate {
        project ->
            if (project.hasProperty("android")) {
                android {
                    compileSdkVersion = rootProject.ext.compileSdkVersion
                    buildToolsVersion = rootProject.ext.buildToolsVersion
                }
            }
    }
}

}

What I tried

No response

VisionCamera Version

4.0.1

Additional information

mrousavy commented 2 weeks ago

wrong issue template.