我的应用正常运行!
run android
时
该应用程序已编译,没有错误,但是在显示时返回了消息。
不幸的是,应用程序已停止
当我安装并链接这两个软件包时发生了
react-native-push-notification
和react-native-google-analytics-bridge
{
"rnpm": {
"assets": [
"./assets/fonts/"
]
},
"name": "Melkana",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"@ptomasroos/react-native-multi-slider": "0.0.14",
"expo": "^28.0.0",
"expo-analytics": "^1.0.7",
"lodash": "^4.17.10",
"react": "16.3.1",
"react-native": "0.55.3",
"react-native-check-box": "^2.1.0",
"react-native-elements": "^0.19.1",
"react-native-google-places-autocomplete": "^1.3.6",
"react-native-map-clustering": "^1.3.0",
"react-native-maps": "*",
"react-native-modal-picker": "0.0.16",
"react-native-simple-radio-button": "^2.7.2",
"react-native-ui-kitten": "^3.0.1",
"react-native-vector-icons": "^4.6.0",
"react-navigation": "^2.0.2",
"rn-sliding-up-panel": "^1.2.1"
},
"devDependencies": {
"babel-jest": "22.4.3",
"babel-preset-react-native": "4.0.0",
"jest": "22.4.3",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
}
}
在Android Studio中运行此命令时,请在Logcat上查看此记录的错误
E / AndroidRuntime:致命异常:线程1480 进程:com.melkana,PID:11733 java.lang.NoSuchMethodError:类Lcom / facebook / soloader / SoLoader中没有静态方法loadLibrary(Ljava / lang / String;)V或其超级类(“ com.facebook.soloader.SoLoader”的声明出现在/data/app/com.melkana-2/base.apk中)
在com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:18)
在com.facebook.react.bridge.NativeMap。(NativeMap.java:19)
在com.facebook.react.bridge.JSCJavaScriptExecutorFactory.create(JSCJavaScriptExecutorFactory.java:21)
在com.facebook.react.ReactInstanceManager $ 5.run(ReactInstanceManager.java:912)
在java.lang.Thread.run(Thread.java:818)