NativeScript / NativeScript/nativescript-cli

ns build android fails in CI environment without emulator

未关闭
#5,921 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug-pending-triage
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Issue Description

When building an Android app in a CI environment there is no need for emulator being installed, but it is required by CLI.

It might be related to #4265 I'm not sure if the author has requested the same thing or not so I created this issue.

Reproduction

Try to build an Android app using Github actions, or just inside a docker/podman container.

Relevant log output (if applicable)
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
✖ WARNING: The Android SDK is not installed or is not configured properly. 
 You will not be able to run your apps in the native emulator. To be able to run apps
in the native Android emulator, verify that you have installed the latest Android SDK 
and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements
Environment

No response

Please accept these terms

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 packages/doctor/src/android-tools-info.ts 中被引用的检查开始,然后在没有模拟器的 GitHub Actions 或 Docker/Podman 容器中重现构建。追踪模拟器要求影响构建的原因,并验证 Android 构建在该环境中能够成功完成,而无需安装模拟器。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, javascript
领域
ci-cd, cli, mobile
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。