Eclipse fire up new Android instance every time you clicks “Run”

情到浓时终转凉″ 提交于 2019-12-11 10:34:37

问题


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!



来源:https://stackoverflow.com/questions/7280181/eclipse-fire-up-new-android-instance-every-time-you-clicks-run

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!