Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why eclipse open another emulator?

Tags:

android

Why does Eclipse open an new emulator while there is already an emulator opened ? Sometime it happens, sometime it's not. Does someone knows why ? I hate when it doesn't that and i would like to fix this "problem"

like image 216
Tsunaze Avatar asked Mar 21 '12 17:03

Tsunaze


2 Answers

This is caused when your project properties are not setup to run manually and for whatever reason (SDK or Target version) the emulator opens in a new instance.

To Solve: Right Click your Project --> Run As --> Run Configurations

Then, make sure the Project in question is the one selected on the left and the Name is on the top.

You will then see 'Target' at the top: enter image description here

Choosing Manual should allow you to choose the running emulator. If not, make sure your project SDK is set with an SDK version you have installed or a range that is compliant:

<uses-sdk android:minSdkVersion="3" />
<uses-sdk android:targetSdkVersion="14" />

or whatever range you plan on supporting and AVDs/Emulators you have setup.

Hope that helps!

like image 100
TryTryAgain Avatar answered Oct 29 '22 21:10

TryTryAgain


Yeah, it's annoying. I don't know how to fix it per se either, but instead I set it to always let me manually select the device to debug on. Then at least you can choose the correct device/emulator. Right click your project, select Run, Run configurations..., then select the Target tab. Change the Deployment Target Selection Mode to manual. Automatic with a selected device is supposed to work, but I find once in a while it'll launch something else. If that's not set you can try that and see if it works for you.

like image 36
kabuko Avatar answered Oct 29 '22 21:10

kabuko