App Center 未显示 React Native Android 的构建变体 [英] App Center shows no build variants for React Native Android

查看:49
本文介绍了App Center 未显示 React Native Android 的构建变体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 App Center 上为 React Native 应用程序设置构建.我已将应用链接到 Azure Devops 存储库,并选择了分支并尝试创建构建.

I am trying to set up a build for a React Native app on App Center. I have linked the app to the Azure Devops Repository, and selected the branch and attempted to create a build.

但是,当我尝试创建构建时,它找到了 package.json 但没有找到任何构建变体:

However, when I try to create the build, it finds the package.json but does not find any build variants:

我已经确认它正在为该应用程序找到 package.json(我删除了它并且它抱怨).我知道构建变体来自 build.gradle 中的构建类型,其中包含一个发布变体.

I have confirmed that it is finding the package.json for the app (I remove it and it complains). I know that the build variants come from the build types in the build.gradle, which has a release variant in it.

我在谷歌上搜索了这个,并在上面烧了两个晚上.我有另一个构建得很好的项目,但我看不出它们之间的区别.

I've googled the heck out of this and burned two evenings on it. I have another project that builds just fine, and I cannot see the difference between them.

为什么 AppCenter 无法获取构建变体?我如何配置它们?

Why is AppCenter not able to pick up the build variants? How do I configure them?

推荐答案

为了结束这个问题,问题是目前 Azure DevOps 上的一个限制.

Just to close this question, the issue is a limitation currently on Azure DevOps.

据 MS 报告,package.json 的最大深度实际上只有两个级别,而不是他们文档中描述的 4 个级别.

As reported by MS and the maximum depth of the package.json is actually only two levels deep, not 4 levels as described in their documentation.

这篇关于App Center 未显示 React Native Android 的构建变体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆