当我尝试在Genymotion上启动我的react-native应用程序时,它显示:
运行adb时出错:'运行应用程序时出错。错误:活动未启动,无法解析Intent {act = android.intent.action.VIEW dat = exp://192.168.56.1:19000 flg = 0x10000000}'
然而,当我尝试启动Java应用程序时,一切运行良好。我在网上搜索了一些提示,但没有。
我的环境:
'{
"name": "SnapVendy",
"version": "0.1.0",
"private": true,
"devDependencies": {
"jest-expo": "25.0.0",
"react-native-scripts": "1.11.1",
"react-test-renderer": "16.2.0"
},
"main": "./node_modules/react-natives cripts/build/bin/crna-entry.js",
"scripts": {
"start": "react-native-scripts start",
"eject": "react-native-scripts eject",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"test": "node node_modules/jest/bin/jest.js"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"axios": "^0.18.0",
"expo": "^25.0.0",
"mobx": "^4.1.0",
"native-base": "^2.3.10",
"react": "16.2.0",
"react-native": "0.52.0",
"react-navigation": "^1.5.8"
}
}'
Expo packager-info.json :
'{
"expoServerPort": 19000,
"packagerPort": 19001,
"packagerPid": 10380,
"expoServerNgrokUrl": null,
"packagerNgrokUrl": null,
"ngrokPid": null
}'