简体   繁体   中英

Run app on currently running emulator (Android)

I am beginner to Android. I have an emulator running currently. I created an android app. When I run that app, it starts starting a new emulator and running in that new emulator. But, I want to run that app in the same emulator that is being run.

Open the run configuration you created, select the "Target" tab. Choose the radio button "Launch on all compatible devices/AVDs". Switch the combo box below that radio button to "Active AVDs".

This will start your app on all currently running emulators.

If you don't have any device under the Target section. You can try to restart the AVD manager. to do this open your command prompt and enter the following command:

adb kill-server

this will stop the AVD Manager service.

then enter:

adb start-server

or

adb logcat

to start the service again. Then check if you can add your AVD as a Target .

try going into the "Run Configurations" via the arrow attached to the run button in Eclipse.

then. under "Target" you can choose the "Always prompt to pick device".
this will allow you to choose any running emulator or device.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM