“build.android.buildType”是不允许的

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

首先,英语不是我的母语,对此感到抱歉。 我正在世博会上开发 React Native 项目。我需要构建项目。Eas 在世博会上工作。我写了

Eas build:configure
并创建了 eas.json。

eas.json:

{
  "cli": {
    "version": ">= 5.9.1"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {},
    "android": {
      "buildType": "apk"
    }
  },
  "submit": {
    "production": {}
  }
}

之后,我写了

eas build --platform android --profile android
,但我得到了这样的输出:

eas.json 无效。

不允许“build.android.buildType”

我哪里出错了?

android react-native build expo eas
1个回答
0
投票

在“构建”中,您需要在“生产”中添加“android”:{“buildType”:“apk”}。您已添加外部“生产”

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