NativeScript / NativeScript/nativescript-cli

ns build android fails in CI environment without emulator

オープン
#5,921 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug-pending-triage
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. 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 を短くまとめたダイジェスト。