无法通过Expo启动Genymotion的本机应用程序

问题描述 投票:0回答:1

当我尝试在Genymotion上启动我的react-native应用程序时,它显示:

运行adb时出错:'运行应用程序时出错。错误:活动尚未开始,无法解决意图{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
}'
javascript android react-native genymotion expo
1个回答
0
投票

在Android模拟器上安装expo应用,然后重新启动服务器

© www.soinside.com 2019 - 2024. All rights reserved.