Visual Studio App Center Error: Publishing build artifacts failed with an error: Not found PathtoPublish

Visual Studio App Center Error: Publishing build artifacts failed with an error: Not found PathtoPublish

我正在使用 Visual Studio App Center 来持续集成 React Native 应用程序。

当我运行构建时,它在日志中显示构建成功。但是状态显示为失败。

我遇到了以下错误。我该如何解决这个问题?

[error]Publishing build artifacts failed with an error: Not found PathtoPublish: /Users/vsts/agent/2.126.0/work/1/a/build

提前致谢。

我通过生成通用apk解决了它。