App crash on start
Hello .. I am trying all day to setup v8 but no luck. I see in logcat this error:
No implementation found for com.facebook.react.bridge.Inspector com.facebook.react.bridge.Inspector.instance() (tried Java_com_facebook_react_bridge_Inspector_instance and Java_com_facebook_react_bridge_Inspector_instance__) E/unknown:ReactNative: Inspector doesn't work in open source yet java.lang.UnsatisfiedLinkError: No implementation found for com.facebook.react.bridge.Inspector com.facebook.react.bridge.Inspector.instance() (tried Java_com_facebook_react_bridge_Inspector_instance and Java_com_facebook_react_bridge_Inspector_instance__) at com.facebook.react.bridge.Inspector.instance(Native Method)
Not sure what I am doing wrong to be honest but quite stuck with this . Any help please...
My react native is 0.62.2 and v8 "react-native-v8": "^0.60.0-patch.2",
For RN 0.62.2, please use react-native-v8 0.62.2-patch-* and the latest one is 0.62.2-patch.1.
Hello thx it works. I want to ask you what exact improvement we can expect with V8 ? To be honest I hate my life when I need to deal with Android performances in react native. Will V8 be able to speed up JS execution?
From my previous benchmark, V8 will not help a lot compared to Hermes or JavaScriptCore, except you use the v8-android-jit version. Performance issue is complicated and it is highly depended with your application. If your application is heavy JS computing one, then the better JS engine may help.
Please always do profiling and find the bottleneck first.
Hi, I also have the same issue, On start app crashes I have install
"dependencies": {
**...Other dependencies**,
"react": "16.13.1",
"react-native": "0.63.2",
"react-native-v8": "0.62.2-patch.1",
"v8-android-jit": "^8.84.0",
**...Other dependencies**,
},
I have made all the required changes in build.gradle and app/build.gradle
@gauravsbagul For [email protected], please use react-native-v8@0.63.2-patch.1.
@gauravsbagul For [email protected], please use react-native-v8@
0.63.2-patch.1.
Thanks, it worked at first,
console.log(V8 version is ${global._v8runtime().version});
but when I switched to debug mode I got this error on the console
ExceptionsManager.js:179 TypeError: global._v8runtime is not a function
and got a crash
@gauravsbagul In current react-native design, if you enable remote debugging, the JS engine is proxied to and running inside Chrome browser.
That is not running by react-native-v8 and no global._v8runtime as well.
@gauravsbagul In current react-native design, if you enable remote debugging, the JS engine is proxied to and running inside Chrome browser. That is not running by react-native-v8 and no
global._v8runtimeas well.
Yes, resolved, Thank you
"dependencies": { ...Other dependencies, "react": "16.11.0", "react-native": "0.62.1", "react-native-v8": "0.62.1-patch.0",
**...Other dependencies**,
},
App crash on start.
@Farmscraft What's the version of v8-android? You could check the version at yarn.lock.
"v8-android-jit": "^9.88.0",
"react-native-v8": "^0.62.2-patch.2",
"react-native": "~0.62.2",
if i use v8-android then its working fine and if i want to use v8-android-jit then it crash when app start after bundle load
"v8-android-jit": "^9.88.0", "react-native-v8": "^0.62.2-patch.2", "react-native": "~0.62.2",if i use v8-android then its working fine and if i want to use v8-android-jit then it crash when app start after bundle load
Resolved