首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >应用程序在运行-android时崩溃,在三星m205f等手机上没有错误。

应用程序在运行-android时崩溃,在三星m205f等手机上没有错误。
EN

Stack Overflow用户
提问于 2022-02-16 12:32:39
回答 2查看 1.2K关注 0票数 1

应用程序在调试模式下崩溃,在像m205f这样的手机中没有错误,有些手机运行良好,我使用其他的react本地应用程序和它的ok,我的package.json,我尝试了这么多的事情,但没有发生什么事情,仍然在崩溃模式和apk是工作良好,没有任何崩溃或不寻常的东西。

“依赖关系”:{

代码语言:javascript
复制
"@craftzdog/pouchdb-core-react-native": "^7.0.0",
"@craftzdog/pouchdb-replication-react-native": "^7.0.0",
"@react-native-community/art": "^1.2.0",
"@react-native-community/async-storage": "^1.12.0",
"@react-native-community/blur": "^3.6.0",
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/netinfo": "^5.9.9",
"@react-native-community/push-notification-ios": "^1.5.0",
"@react-native-community/voice": "^1.1.9",
"@react-native-firebase/analytics": "^10.6.4",
"@react-native-firebase/app": "^10.8.1",
"@react-native-firebase/messaging": "^10.8.1",
"@react-navigation/bottom-tabs": "^5.9.2",
"@react-navigation/material-top-tabs": "^5.2.19",
"@react-navigation/native": "^5.7.5",
"@react-navigation/stack": "^5.9.2",
"axios": "^0.24.0",
"events": "^3.2.0",
"jalali-moment": "^3.3.10",
"lottie-react-native": "^3.5.0",
"moment": "^2.29.1",
"moment-jalaali": "^0.9.2",
"pouchdb-adapter-react-native-sqlite": "^2.0.0",
"pouchdb-find": "^7.2.2",
"react": "16.13.1",
"react-devtools": "^4.22.1",
"react-native": "^0.66.4",
"react-native-background-actions": "^2.6.5",
"react-native-barcode-mask": "^1.2.4",
"react-native-camera": "^3.44.3",
"react-native-chart-kit": "^6.6.1",
"react-native-circular-progress": "^1.3.6",
"react-native-device-info": "^7.3.1",
"react-native-exit-app": "^1.1.0",
"react-native-fast-image": "^8.3.4",
"react-native-fs": "^2.16.6",
"react-native-gesture-handler": "^1.10.3",
"react-native-image-crop-picker": "^0.35.2",
"react-native-image-picker": "^4.7.0",
"react-native-keyboard-aware-scroll-view": "^0.9.3",
"react-native-linear-gradient": "^2.5.6",
"react-native-modern-datepicker": "^1.0.0-beta.91",
"react-native-orientation-locker": "^1.4.0",
"react-native-paper": "^4.11.2",
"react-native-parsed-text": "^0.0.22",
"react-native-permissions": "^3.0.1",
"react-native-push-notification": "^8.1.1",
"react-native-qrcode-scanner": "^1.4.1",
"react-native-reanimated": "^1.13.3",
"react-native-restart": "^0.0.17",
"react-native-safe-area-context": "^3.1.8",
"react-native-screens": "^2.11.0",
"react-native-simple-gauge": "^0.3.0",
"react-native-size-matters": "^0.3.1",
"react-native-sound-player": "^0.10.5",
"react-native-splash-screen": "^3.2.0",
"react-native-sqlite": "^3.3.3",
"react-native-sqlite-2": "^3.1.1",
"react-native-star-rating": "^1.1.0",
"react-native-svg": "^12.1.0",
"react-native-tab-view": "^2.15.2",
"react-native-text-ticker": "^1.14.0",
"react-native-toast-message": "^2.1.1",
"react-native-vector-icons": "^7.1.0",
"react-native-video": "^5.1.0-alpha8",
"react-native-walk-counter": "^1.0.6",
"react-native-webview": "^11.0.2",
"react-native-wheel-pick": "^1.1.0",
"react-native-wheel-picker-android": "^2.0.6",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"shamsi-date-converter": "^1.0.5",
"victory-native": "^36.2.0"

},

代码语言:javascript
复制
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/runtime": "^7.11.2",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.3.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"eslint": "^7.10.0",
"jest": "^26.4.2",
"jetifier": "^1.6.6",
"metro-react-native-babel-preset": "^0.63.0",
"react-native-bundle-visualizer": "^2.2.1",
"react-native-svg-transformer": "^0.14.3",
"react-test-renderer": "16.13.1"

},

是否有任何库或依赖项造成此崩溃?

EN

回答 2

Stack Overflow用户

发布于 2022-02-16 12:45:20

首先,确保删除节点模块并重新安装它,然后尝试以下命令

代码语言:javascript
复制
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
票数 0
EN

Stack Overflow用户

发布于 2022-02-17 06:55:28

我想是react-native-reanimated包造成的。在他们的文档中提到,远程调试不再可能进行反应-本机-恢复。

由于库使用JSI进行同步本机方法访问,因此不再可能进行远程调试。您可以使用Flipper调试JS代码,但是当前不支持将调试器连接到运行在UI线程上的JS上下文。

参考文献:反应本地再生的已知问题和限制

要使用Flipper,请参阅下面的doc:调试使用Flipper响应本机应用程序

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71141938

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档