Android emulator-5554 offline

后端 未结 30 1539
旧时难觅i
旧时难觅i 2020-11-28 21:58

I\'m having a problem with emulator-5554, it keeps telling me it is offline.

When I do a adb devices from the command line it says

相关标签:
30条回答
  • 2020-11-28 23:00

    I finally solved this problem, I had to go to the Developer options from the Settings in the Emulator, then scrolled down a little, turned on the USB debugging. Instantly my device was recognized online, and I no longer faced that issue. I tried restarting android studio and emulator, killing adb process, but those did not work.

    0 讨论(0)
  • 2020-11-28 23:00

    Try this ...

    1. Close emulator if it Running.

    2. Start Emulator again and wait for its online.

    3. enter Command in commandprompt and press ENTER key : adb tcpip 5555

    (Make sure that only One emulator running at a time.)

    1. adb -s emulator-5555 emu kill

    2. Press Enter Key....

    3. Done.

    4. check devices by command "adb devices" in cmd.

    0 讨论(0)
  • 2020-11-28 23:00

    I tried everything but only this one works for my case: Use SDK manager, and reinstall the system image. Android Studio, click Configure, SDK Manager, Launch Standalone SDK Manager, Check all "Google APIs Intel x86* System Image", "Intel x86 Atom*System Image" and install. Then re-start Android studio.

    You might have to reconfigure and wipe the virtual device with AVD Manager, make sure you choose x86 version.

    0 讨论(0)
  • 2020-11-28 23:01

    If you are on Linux or Mac, and assuming the offline device is 'emulator-5554', you can run the following:

    netstat -tulpn|grep 5554
    

    Which yields the following output:

    tcp        0      0 127.0.0.1:5554          0.0.0.0:*               LISTEN      4848/emulator64-x86
    tcp        0      0 127.0.0.1:5555          0.0.0.0:*               LISTEN      4848/emulator64-x86
    

    This tells me that the process id 4848 (yours will likely be different) is still listening on port 5554. You can now kill that process with:

    sudo kill -9 4848
    

    and the ghost offline-device is no more!

    0 讨论(0)
  • 2020-11-28 23:01

    The "wipe user data" option finally solved my problem. just wipe user data every time you start the emulator. This always works for me! I use windows 8 x64 , eclipse

    0 讨论(0)
  • 2020-11-28 23:02

    Simply delete and created gear avd again.It will work.

    0 讨论(0)
提交回复
热议问题