React Native release APK崩溃

时间:2017-12-02 03:49:23

标签: react-native

我遇到了React Native 50.3和50.4的问题,

我已经使用react-native-git-upgrade和我的应用程序运行良好,当我运行react-native run-android时,应用程序正常运行

应用程序完全正在使用React Native Version 47.2我使用升级应用程序升级应用程序时运行版本APK应用程序崩溃打开

我已经尝试了几天,但没有成功解决这个问题。我不确定是什么导致这个问题,因为当我运行调试版本的应用程序工作正常没有我能找到的问题,当我回到我的构建47.2它工作正常。

只要我打开已安装的已签名APK,该应用就会崩溃。

我注意到的一件事就是APK的大小,当我在47.2上工作时,我的APK大20mb。

我没有在构建或签名时出现任何错误

有人可以帮我调试此问题或找到解决方案吗?

{
  "name": "APP",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "mobx": "^3.1.8",
    "mobx-react": "^4.1.5",
    "native-base": "^2.3.1",
    "react": "^16.0.0",
    "react-native": "^0.50.4",
    "react-native-collapsible": "^0.8.0",
    "react-native-drawer": "^2.3.0",
    "react-native-fcm": "^8.0.0",
    "react-native-maps": "^0.15.3",
    "react-native-svg": "^5.1.7",
    "react-native-transformable-image": "0.0.18",
    "react-native-vector-icons": "^4.3.0",
    "react-navigation": "^1.0.0-beta.11"
  },
  "devDependencies": {
    "babel-cli": "^6.24.0",
    "babel-jest": "19.0.0",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-preset-flow": "^6.23.0",
    "babel-preset-react-native": "1.9.1",
    "babel-preset-react-native-stage-0": "^1.0.1",
    "jest": "19.0.2",
    "react-test-renderer": "15.4.2"
  },
  "jest": {
    "preset": "react-native"
  }
}

1 个答案:

答案 0 :(得分:4)

你必须阅读Android设备的日志。只需运行adb logcat,您就会看到抛出异常。