要求未知模块“未定义”

时间:2019-07-25 09:46:29

标签: reactjs react-native

在android的Release Build中,我在调试中得到此错误,一切正常。

  

致命异常:mqt_native_modules。需要未知模块   “未定义”。

请帮助我。我仍然停留了6个小时

"dependencies": {
    "native-base": "^2.12.1",
    "react": "16.8.3",
    "react-native": "0.59.9",
    "react-native-audio": "^4.3.0",
    "react-native-dropdown": "^0.0.6",
    "react-native-geo-fencing": "^0.1.0",
    "react-native-geolocation-service": "^2.0.1",
    "react-native-gesture-handler": "^1.3.0",
    "react-native-image-marker": "^0.4.4",
    "react-native-localization": "^2.1.2",
    "react-native-maps": "^0.25.0",
    "react-native-share": "1.2.1",
    "react-native-simple-dialogs": "^1.1.0",
    "react-native-splash-screen": "^3.2.0"
  }

Requiring unknown module "undefined" on react-native-maps 这是太旧的解决方案,它对我不起作用。

1 个答案:

答案 0 :(得分:0)

首次运行命令:

rm -rf /node_modules && npm install

然后运行:

react-native start