gpt4 book ai didi

android - React Native : Unfortunately, 应用程序已停止

转载 作者:行者123 更新时间:2023-11-29 15:35:26 26 4
gpt4 key购买 nike

我的应用程序运行正常!

运行android应用程序编译无误,但在显示时返回消息。

Unfortunately, application has stopped

当我安装并链接这两个包时发生了

react-native-push-notificationreact-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: FATAL EXCEPTION: Thread-1480Process: com.melkana, PID: 11733 java.lang.NoSuchMethodError: No static method loadLibrary(Ljava/lang/String;)V in class Lcom/facebook/soloader/SoLoader; or its super classes (declaration of 'com.facebook.soloader.SoLoader' appears in /data/app/com.melkana-2/base.apk)

at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:18)

at com.facebook.react.bridge.NativeMap.(NativeMap.java:19)

at com.facebook.react.bridge.JSCJavaScriptExecutorFactory.create (JSCJavaScriptExecutorFactory.java:21)

at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:912)

at java.lang.Thread.run(Thread.java:818)

enter image description here

最佳答案

解决方法:

app/build.gradle

implementation 'com.facebook.fresco:fresco:1.9.0'
implementation 'com.facebook.fresco:animated-gif:1.9.0'
// IN CASE YOU NEED WEBP SUPPORT / MAKE SURE TO CHANGE THIS TOO TO 1.9.0
implementation 'com.facebook.fresco:animated-webp:1.9.0'
implementation 'com.facebook.fresco:webpsupport:1.9.0'

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

关于android - React Native : Unfortunately, 应用程序已停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51389541/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com