Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OldbieCoder opened this issue Jun 1, 2023 · 2 comments
Open

Comments

@OldbieCoder
Copy link

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
Copy link
Owner

Kudo commented Jul 3, 2023

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
Copy link
Author

OldbieCoder commented Jul 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants