Kudo / react-native-v8

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

react-native change maven center from November 4th 2022. #153

Closed wangchongwei closed 1 year ago

wangchongwei commented 1 year ago

Hello,

https://github.com/facebook/react-native/issues/35210

react-native: 0.59.10 react-native-v8: ^0.59.10-patch.6 implementation 'org.chromium:v8-android:8.80.+'

when react-native change maven center from November 4th 2022.

i update android/build.gradle:

configurations.all {
        resolutionStrategy {
            force "com.facebook.react:react-native:0.59.10"  //<-- please change here
        }
    }

build success, but app start, get error : java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libreactnativejni.so caused by: dlopen failed: library "libjsc.so" not found

i need some help

capezzbr commented 1 year ago

Run

rm -rf node_modules/react-native-v8/android/build then cd into your Android app directory and run ./gradlew extractSOFiles

wangchongwei commented 1 year ago

@capezzbr thank you. but i use react-native-v8 version : ^0.59.10-patch.6 react-native: 0.59.10

1、node_modules/react-native-v8/ folder android does not exist 2、run ./gradlew extractSOFiles Task 'extractSOFiles' not found in root project '***'

What other work can I do, can you give me some advice? thank you again.

Kudo commented 1 year ago

@wangchongwei the https://github.com/facebook/react-native/issues/35210 should be resolved even without the android/build.gradle. could you try to remove the patch and try again?

wangchongwei commented 1 year ago

@Kudo thank you. i tried. but when i remove v8, the jsc error show again.

in last year, i found some jsc error by firebase, then i know react-native-v8, and i use it.

It solved the problem perfectly.

But now, they can't work together

thank you again.

Kudo commented 1 year ago

i am not quite understanding your problem. do you mean which two modules cannot work together, jsc + v8 or firebase + v8? if you have some minimal reproducible example, i could help to further investigate.

SmirnovM91 commented 1 year ago

+1

Kudo commented 1 year ago

hi there! i'm closing this as the react-native artifact should be removed from maven central. if someone still encounter the problem, please let me know. thanks!