Cuál es el comando para listar los avdnames disponibles
Sé que puedo iniciar el emulador avd escribiendo
emulator.exe @avdname
¿Pero hay un comando para listar los avdnames disponibles? ¿Dónde se almacena esta configuración avd?
7 answers
AFAIK android list avd
avdmanager list avd
es lo que usted necesita.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-05-08 09:02:42
Usando sdk / tools / emulator
Esto listará todos los avd disponibles
emulator -list-avds
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-06-11 01:20:28
Probé algunas combinaciones y funcionó:), era bastante obvio
android list avd
La salida es algo así
Available Android Virtual Devices:
Name: EMULLL
Path: /home/krste_ristevski/.android/avd/EMULLL.avd
Target: Android 2.3.3 (API level 10)
Skin: WVGA800
Sdcard: 512M
Ahora con
emulator @EMULLL
Puedo iniciar el emulador desde la consola
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-10-20 15:19:55
Lista todos sus emuladores:
Emulador-lista-avds
Ejecute uno de los emuladores enumerados:
Emulador @nombre-de-tu-emulador
Donde el emulador está bajo:
ANDRO{ANDROID_SDK} / tools / emulator
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-06-16 11:28:03
Este es un post antiguo, pero actualmente estoy usando este script para mostrar los nombres avd e iniciar uno.
#! /bin/bash
# (@) start-android
# If the emulator command exists on this device, displays a list of emulators
# and prompts the user to start one
# Check if the emulator command exists first
if ! type emulator > /dev/null; then
echo "emulator command not found"
exit 1
fi
# Gather emulators that exist on this computer
DEVICES=( $(emulator -list-avds 2>&1 ) )
# Display list of emulators
echo "Available Emulators
----------------------------------------"
N=1
for DEVICE in ${DEVICES[@]}
do
echo "$N) $DEVICE"
let N=$N+1
done
# Request an emulator to start
read -p "
Choose an emulator: " num
# If the input is valid, launch our emulator on a separate PID and exit
if [ $num -lt $N ] && [ $num -gt 0 ];
then
DEVICE=${DEVICES[$num-1]}
emulator "@$DEVICE" > /dev/null 2>&1 &
exit 0
else
echo "Invalid Entry : $num"
exit 1
fi
Aquí hay un ejemplo de ejecución y salida:
./start-android.sh
Available Emulators
----------------------------------------
1) Nexus_5X_API_23
2) Nexus_9_API_23
Choose an emulator: 1
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-01-03 05:38:25
Entra en Android / sdk / tools y ejecuta el siguiente comando
./emulator -list-avds
Que devolverá algo como
Nexus_5X_API_P
Nexus_6_API_25
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-07-27 10:17:42
Tengo un método simple (Solo para windows):
En primer lugar establecer ruta permanente a adb en su sistema (Bastante similar como java). Encuentra el tuyo, para la mayoría de los casos -
C:\Program Files\android\android-sdk\platform-tools
y cópialo. Ahora vaya a través de las propiedades de su sistema y encontrar la configuración avanzada del sistema. Ahora buscar Variable de entorno, en la pestaña variable del sistema buscar ruta. Si no hay una ruta, cree una nueva variable y nómbrela Ruta y pegue el valor copiado en el siguiente campo. Pero si ya hay un Camino, ábrelo y ponga un;
punto y coma en el último cuadro de valor y pegue el valor copiado.-
Ya casi has terminado.! Compruébelo escribiendo {[2] } en cmd
Y ahora escribe
adb devices
, eso es lo que querías. Aclamaciones.!
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-09-08 11:16:13