Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.5K
Visualizações
How can i run ionic-capacitor app on Android-studio or mobile device?

I am trying to run an ionic-capacitor app on android studio or my android phone.

When i run

ionic capacitor run android

It shows:

? Which device would you like to target? (Use arrow keys) and it not showing me any option. i pressed the arrow key still nothing and when i pressed enter it shows:

TypeError: Cannot read property 'value' of undefined

Then i tried

ionic capacitor run android --open After compiling it shows:

[capacitor] [error] Unable to launch Android Studio. Is it installed?

[capacitor] Attempted to open Android Studio at: /usr/local/android-studio/bin/studio.sh

[capacitor] You can configure this with the CAPACITOR_ANDROID_STUDIO_PATH environment variable.

I searched online on how to set CAPACITOR_ANDROID_STUDIO_PATH but i didnt see any solution.

Finally i also tried following the steps in this link in a Stackoverflow answer.

I run adb device to show my device ID

Then i tried

ionic capacitor run android --target 0441925667003082

It showed the following error:

[ERROR] 0441925667003082 is not a valid Target ID.

Use the --list option to list all targets.

I tried to use the --list to list all target but it showing [INFO] No native targets found. despite my android device being connected and showing in the adb devices.

What am i doing wrong in all this steps ?.

How can i run ionic-capacitor on android studio and on my mobile device ?.

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

I had the same problem, I think it is an error that create a crashe but is not displayed.

This solution worked for me:

ionic capacitor sync

ionic capacitor open android
over 4 years ago · Santiago Trujillo Relatório

0

command is ionic cap open android for Open project in Android Studio.

ionic cap run android for run project via android studio

ionic cap run android --external for liveReload but here need is both of devices connected on same network.

over 4 years ago · Santiago Trujillo Relatório

0

You need to make sure your environmenent variable ANDROID_SDK_ROOT points to the android sdk location.

Also try re-installing @capacitor/cli and native-run

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda