CRNA构建:android问题

时间:2018-06-26 14:14:01

标签: android react-native expo create-react-native-app

我正在尝试使用expo为我的CRNA项目构建一个APK文件。第一个问题是,它每次都会尝试构建iOS。为什么在我使用exp build:android时构建iOS? 其次,iOS仅偶尔会成功构建。通常挂在0%。

输出如下:

> exp build:android

[16:28:36] Making sure project is set up correctly...
-[16:28:38] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.
[16:28:38] Your project looks good!
[16:28:38] Checking if current build exists...

[16:28:39] No currently active or previous builds for this project.
[16:28:39] Unable to find an existing exp instance for this directory, starting a new one...
[16:28:40] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.
[16:28:42] Starting Metro Bundler on port 19001.
[16:28:42] Metro Bundler ready.
[16:28:43] Tunnel ready.
[16:28:43] Publishing to channel 'default'...
[16:28:44] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.
[16:28:44] Building iOS bundle

然后无限期处理。 有没有人遇到过这些问题并有任何建议?

我的app.json在下面

{
  "expo": {
    "sdkVersion": "27.0.0",
    "icon": "./test-icon.png",
    "entryPoint": "./AppEntry.js",
    "ignoreNodeModulesValidation": true,
    "packagerOpts": {
      "config": "rn-cli.config.js",
      "projectRoots": ""
    },
    "android":{
      "package": "expo.android.package",
    },
    "ios":{
      "bundleIdentifier": "expo.ios.package",
    },
  },
  "privacy": "unlisted",
  "platforms": ["ios", "android"],
  "version": "1.0.0",
  "orientation": "portrait"
}

博览会版本:55.0.4

本机版本:0.55.4

0 个答案:

没有答案