Emulator problem in Android

后端 未结 13 698
被撕碎了的回忆
被撕碎了的回忆 2020-12-02 10:36

When I launch the emulator I face many problems (Errors):-

HttpConnectionApp]emulator-5554 disconnected!
Cancelling \'net.paxcel.http.HttpConnectionApp activ         


        
相关标签:
13条回答
  • 2020-12-02 11:15

    Thanks for this! Just to add for some people who develop in Windows XP.

    The path to the avd directory can be C:\Documents and Settings\.android\avd

    Thanks again for the answer! :)

    0 讨论(0)
  • 2020-12-02 11:16

    Under Run Configurations --> Target --> Add Command Line Options add this

    adb kill-server && adb start-server
    

    every time running your App will kill-restart the adb server.

    0 讨论(0)
  • 2020-12-02 11:18

    A quick-fix that obviously works is to restart the adb server each time this error occurs:

    adb kill-server && adb start-server
    

    Then, you simply run the application again (without restarting AVD) and that's it.

    0 讨论(0)
  • 2020-12-02 11:20

    Run configurationsTargetWipe user data → Run.

    It fixed the problem in my case.

    0 讨论(0)
  • 2020-12-02 11:21

    emulator: ERROR: the user data image is used by another emulator. aborting

    Tried restarting the computer as I had done a lot of messing around earlier but no joy same error.

    Went to shut down ADB so as I'm on XP I run > cmd then paste in > cd C:\Program Files\Android\android-sdk\platform-tools (the location of the location for the ADB on XP)

    Tried

    adb kill-server && adb start-server

    Then moved the directories cache.img.lock and userdata-qemu.img.lock in the C:\Documents and Settings\.android\avd\ to a New folder (instead of deleting)

    This worked fine.

    0 讨论(0)
  • 2020-12-02 11:21
    1. Please set wipe_data for emulator
    2. Use same instance of application (after modification if any) to avoid error you are getting.
    0 讨论(0)
提交回复
热议问题