NativeScript / NativeScript/nativescript-cli
ns build android fails in CI environment without emulator
未關閉
還沒有人認領這個 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
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 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