如何解决“不变违规:“main”尚未注册”-博览会弹出后-React-Native

Tom*_*ali 6 node.js react-native expo

在我对我的项目执行“expo-eject”之后,
当我尝试使用这个命令时:“react-native run-android”
这就是我得到的:





node.js 版本:v12.18.0
React-Native 版本:
react-native-cli:2.0.1
react-native:0.61.5

这是我的“package.json”文件:

{ "scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "expo start" --web"
},
"dependencies": {
"expo": "^37.0.6",
"expo-splash-screen": "^0.2.3",
"expo-updates": "~0.2.0",
"反应": "~16.9.0",
"react-dom": "~16.9.0",
"react-native": "~0.61.5",
"react-native-gesture-handler": "~1.6" .0",
" react-native-reanimated": "~1.7.0",
"react-native-screens": "^2.4.0",
"react-native-unimodules": "~0.9.0",
"react-native-web ": "~0.11.7",
"@react-native-community/masked-view": "0.1.6",
"@react-navigation/drawer": "^5.4.1",
"expo-location": "~8.1.0", "expo -permissions": "~8.1.0",
"font": "0.0.4", "react-native-map-link": "^2.7.9",
"react-native-navigation-apps": "^ 1.0.27",
"react-native-paper": "^3.8.0", "react-native-safe-area-context": "0.7.3", "react-navigation": "^4.3.7" , "react-navigation-drawer": "^2.4.11", "react-navigation-header-buttons": "^3.0.5", "react-navigation-material-bottom-tabs": "^2.2.10 ”,
"react-navigation-stack": "^2.3.11",
"react-navigation-tabs": "^2.8.11",
"react-redux": "^7.2.0",
"redux": "^4.0 .5"
},
"devDependencies": {
"@babel/core": "^7.8.6",
"babel-jest": "~25.2.6",
"jest": "~25.2.6",
"react-test-renderer": "~16.9. 0",
"babel-preset-expo": "~8.1.0"
},
"private": true
}