Android emulator-5554 offline

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

提交回复
热议问题