需要未知module“未定义”

IT技术 reactjs react-native
2021-05-10 15:47:47

在 android 的发布版本中,我在调试中遇到此错误,一切正常。

致命例外:mqt_native_modules。需要未知module“未定义”。

请帮我。我坚持了 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"
  }

在 react-native-maps 上需要未知module“未定义”, 这是太旧的解决方案,对我不起作用。

1个回答

首先运行命令:

rm -rf /node_modules && npm install

然后运行:

react-native start