Eclipse fire up new Android instance every time yo

2019-08-05 05:52发布

问题:

One of my computer has the issue with eclipse and android SDK.

Every time I clicks "Run" or "Debug", then the eclipse will open up a new android instance instead of refresh the app in the "opened" one.

In the meantime, the console prints

    [2011-09-02 16:46:13 - Emulator] WARNING: Data partition already in use. 
Changes will not persist!
    [2011-09-02 16:46:13 - Emulator] WARNING: Cache partition already in use. 
Changes will not persist!

I have restarted my computer and the problem still there.

P.S. I have never get android properly working on this computer, but I have set another three laptops working well. They are all windows7 64bit machines.

Thank you.

回答1:

I hate that you did all of that work, even re-installing the OS - the answer is fairly simple. If it ever happens again (and it will, I deal with it often), you need to kill the adb via command-line, close the emulator, close eclipse, restart eclipse, then edit the Run Configurations. Choose the config you use, click the Target tab and toggle the "Wipe User Data" checkbox to on. Then click apply and Run. Then just toggle it back off and apply. You're good to go.



回答2:

I had this error-message. What helped me is typing the command adb kill-server and then restarting Eclipse. Try it!