NativeScript / NativeScript/nativescript-cli

ns build android fails in CI environment without emulator

Abierto
#5,921 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

bug-pending-triage
Lenguaje dominante
JavaScript
Estrellas
1.1k
Forks
204
Merge medio
1 d 9 h
PR fusionados (30 d)
8

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Empieza por packages/doctor/src/android-tools-info.ts en la comprobación referenciada y, después, reproduce el build en GitHub Actions o en un contenedor de Docker/Podman sin un emulador. Rastrea por qué el requisito del emulador afecta a los builds y verifica que un build de Android se completa correctamente en ese entorno sin requerir la instalación de un emulador.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
android, javascript
Área
ci-cd, cli, mobile
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.