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)
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With