Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio doesn't ask me about target device

In my run configuration for an app I've got "use same device for future launches" unchecked, though it runs always on the same target, until I kill the process myself, or the build fails. It doesn't matter if I start new emulator instances on the way.

Is this a bug in AS? Can I come around it a little cleaner than killing the process?

(Android Studio 2.3, 64-bit Linux)

like image 771
Antek Avatar asked May 23 '17 14:05

Antek


People also ask

Where is target device in Android Studio?

go to "Run>edit configuration>" and select "Open select deployment target dialog" from deployment target option then run your app it will show you a dialog box you can choose your target device from there, enjoy it.

Why is Android studio not detecting my phone?

If your device is not correctly detected in RAD Studio or in the system Device Manager, check the following: Ensure that your Android device is unlocked and not sleeping while connected via USB. Set the appropriate option in Settings or Developer Options. Make sure your Android device is enabled for USB debugging.

How do I select a device in Android Studio?

In Android Studio, select your app from the run/debug configurations drop-down menu in the toolbar. In the toolbar, select the device that you want to run your app on from the target device drop-down menu.

What is a system image in Android Studio?

A system image is a copy of one version of the Android operating system. Each platform version contains the supported system images. You can also download system images later when creating Android Virtual Devices (AVDs) in the AVD Manager.


Video Answer


1 Answers

Please make sure you Stop the app first and then Run it again, then a prompt will appear asking for the target device.

I use macOS Sierra, I go through the following path to change settings if I face the problem you mentioned.

Run > Edit Configurations > app > Deployment Target Options.

like image 152
8hubham Avatar answered Oct 19 '22 03:10

8hubham