Kudo / react-native-v8

Opt-in V8 runtime for React Native Android
MIT License
900 stars 69 forks source link

Build failed with "Could not find org.chromium:v8-android:9.93.+" #178

Open OldbieCoder opened 1 year ago

OldbieCoder commented 1 year ago

Good day, I'm trying to replace JSC to V8. But got the build error when doing "Rebuild Project". Could someone give any ideas? Much thanks. Here are my package.json and some version infos.

"dependencies": { "@ptomasroos/react-native-multi-slider": "^2.2.2", "@react-native-community/art": "^1.2.0", "@react-native-community/masked-view": "^0.1.11", "@react-navigation/native": "^5.x", "@react-navigation/stack": "^5.14.9", "intl": "1.2.5", "intl-messageformat": "2.2.0", "lottie-react-native": "^4.1.3", "query-string": "^7.0.1", "react": "17.0.1", "react-native": "^0.65.1", "react-native-device-info": "^8.4.5", "react-native-fs": "^2.19.0", "react-native-gesture-handler": "^1.10.3", "react-native-image-capinsets": "^0.5.0", "react-native-indicators": "^0.17.0", "react-native-linear-gradient": "^2.5.6", "react-native-progress": "^5.0.0", "react-native-safe-area-context": "^3.3.2", "react-native-screens": "^3.9.0", "react-native-shadow": "^1.2.2", "react-native-svg": "^9.4.0", "react-native-swipeout": "^2.3.6", "react-native-swiper": "^1.6.0-rc.3", "react-native-v8": ">=0.65.1-patch.0 <0.65.2", "react-native-webview": "^11.14.2" },

app build.gradle defaultConfig {


        minSdkVersion 21
        targetSdkVersion 30
}
dependencies {
    implementation "com.facebook.react:react-native:+"
    implementation "org.chromium:v8-android:9.93.+"
}

project build.gralde
repositories {
        google()
        mavenLocal()
        mavenCentral()
        jcenter()
        maven {
            url "https://repo.eclipse.org/content/repositories/paho-snapshots/"
        }
        maven { url 'https://repo1.maven.org/maven2/' }
        maven { url "file://${rootDir}/mavenLocal" }
        maven {url("$rootDir/../node_modules/react-native-v8/dist")}
        maven { url("$rootDir/../node_modules/v8-android-jit/dist") }
    }
    dependencies {
        classpath "com.android.tools.build:gradle:4.2.1"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
        classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"

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

hi there! could you help to clarify the location of where the v8-android-jit installed? it is a transitive dependency of react-native-v8.

OldbieCoder commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。   亲!你的邮件已收到,谢谢你的关心!