i'm trying to use react-native-webview for my application.In iOS,it works well.In Android ,it doesn't.And unfortunatelly,i don know the reason.i reserched a lot.unfortunatelly,i still have a problem.it produced this error on Android studio.because it doesn't produces any error by running this command.
react-native run-android
so i can't understand why it doesn't work.so i tried to build it on android studio,then it produced this error.
2020-04-29 00:34:25.444 19491-19530/com.hiratsuka_react_native_test E/SoLoader: couldn't find DSO to load: libhermes.so2020-04-29 00:34:25.446 19491-19530/com.hiratsuka_react_native_test E/AndroidRuntime: FATAL EXCEPTION: create_react_contextProcess: com.hiratsuka_react_native_test, PID: 19491java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:789) at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:639) at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577) at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:525) at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20) at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:27) at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:952) at java.lang.Thread.run(Thread.java:764)
my env is here.
react-native-cli: 2.0.1react-native: 0.61.5 {"name": "hiratsuka_react_native_test","version": "0.0.1","private": true,"scripts": {"android": "react-native run-android","ios": "react-native run-ios","start": "react-native start","test": "jest","lint": "eslint .","storybook": "start-storybook -p 7007" },"dependencies": {"@expo/vector-icons": "^10.0.6","@react-native-community/masked-view": "^0.1.7","@react-navigation/bottom-tabs": "^5.2.0","@react-navigation/native": "^5.0.9","@react-navigation/stack": "^5.1.1","@unimodules/core": "^5.0.0","axios": "^0.19.2","expo-asset": "^8.0.0","expo-constants": "^8.0.0","expo-font": "^8.0.0","jest-worker": "^25.2.6","react": "16.9.0","react-native": "0.61.5","react-native-elements": "^1.2.7","react-native-fast-image": "^8.1.5","react-native-gesture-handler": "^1.6.0","react-native-get-random-values": "^1.4.0","react-native-reanimated": "^1.7.0","react-native-safe-area-context": "^0.7.3","react-native-screens": "^2.2.0","react-native-unimodules": "^0.8.1","react-native-webview": "^9.3.0","react-navigation": "^4.3.4","realm": "5.0.0","typescript": "^3.7.0-beta" },"devDependencies": {"@babel/core": "7.8.7","@babel/runtime": "7.8.7","@react-native-community/eslint-config": "0.0.5","@storybook/addon-actions": "^5.3.17","@storybook/addon-links": "^5.3.17","@storybook/addons": "^5.3.17","@storybook/react-native": "^5.3.17","@storybook/react-native-server": "^5.3.17","babel-jest": "24.9.0","babel-loader": "^8.0.6","eslint": "^5.0.0","jest": "24.9.0","metro-react-native-babel-preset": "0.56.4","react-dom": "^16.9.0","react-native-storybook-loader": "^1.8.1","react-test-renderer": "16.9.0" },"jest": {"preset": "react-native" } }
i tried to clean cache,change gradle,or something.but it didn't work.
before using react-native-webview,it worked well.
please help.