Android emulator-5554 offline

后端 未结 30 1541
旧时难觅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 22:53

    Did you try deleting and recreating your AVD? You can manually delete the AVD files by going to the directory they're stored in (in your user's /.android/avd subdirectory).

    0 讨论(0)
  • 2020-11-28 22:55

    Just write

    adb -e reboot
    

    and be happy with adb))

    0 讨论(0)
  • 2020-11-28 22:55

    See emulator-5554 unauthorized for adb devices. On API 29 emulator I run adb devices command and got emulator-5554 unauthorized message. Then I created a new avd device from Google APIs image (in my case Q, x86), not from Google Play.

    0 讨论(0)
  • 2020-11-28 22:56

    Enable USB Debugging into your emulator

    1. Settings > About Phone > Build number > Tap it 7 times to become developer;
    2. Settings > Developer Options > USB Debugging.

    That's it enjoy

    0 讨论(0)
  • 2020-11-28 22:57

    Go to windows task manager and end process "adb.exe". There might be more than 1 instances of the same process, make sure to end all of them.

    0 讨论(0)
  • 2020-11-28 22:59

    on linux or mac the port thats blocked will emulator-id + 1 so 5555 so: sudo lsof -i :5555 will show you the pid of process that are taking the port (should be the second column) so to kill it: sudo lsof -i :5555 | awk '{print $2}' | xargs kill

    then adb (fake) devices will no longer show on the list

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