开发者

Eclipse fire up new Android instance every time you clicks "Run"

开发者 https://www.devze.com 2023-04-02 11:54 出处:网络
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 \"opene

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!

开发者_JAVA技巧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.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消