Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When I'm running an app on Android Studio the "Choose device" box doesn't show

I'm trying to run a simple code on my phone (Genymotion doesn't work, so I had to run it on my phone directly) and it tells me that "External task execution finished" but Choose device box doesn't pop up when I press "Run". I installed:

  1. ADB driver.
  2. My phone is Xperia Sp, so I change MTP to MSC (There's no PTP).
  3. USB debugging is on.

Furthermore, the Android Device Monitor is showing my device, so there's no problem with identifying my phone.

like image 853
Waleed Adel Avatar asked Jun 16 '16 03:06

Waleed Adel


People also ask

Is it possible to run an app on your Android device directly?

When you are set up and plugged in over USB, you can click Run in Android Studio to build and run your app on the device. You can also use adb to issue commands, as follows: Verify that your device is connected by running the adb devices command from your android_sdk /platform-tools/ directory.

Where is target device in Android Studio?

The Project Manager has a Target node located inside the Android target platform node. The Target node lists any Android device that is connected to your system via USB cable and has been enabled for USB debugging.

What is device in Android Studio?

An Android Virtual Device (AVD) is a configuration that defines the characteristics of an Android phone, tablet, Wear OS, Android TV, or Automotive OS device that you want to simulate in the Android Emulator. The Device Manager is an interface you can launch from Android Studio that helps you create and manage AVDs.


2 Answers

In Android Studio:

  1. Goto Run menu
  2. choose edit configuration
  3. select android application
  4. select app in general option
  5. In this option showing "Deployment Target Options" then Target, choose "Show device chooser dialog".
like image 150
Nachiket Avatar answered Oct 05 '22 13:10

Nachiket


May be your deployment target is changed. Please check android studio setting

Click On

Run >> edit configuration >> under Android Application Click on App >> check deployemnt target option.

like image 44
Sachin Avatar answered Oct 05 '22 11:10

Sachin