Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037

后端 未结 4 593
无人共我
无人共我 2021-01-17 19:41

I am stuck a whole afternoon trying to run again my small Android/Kotlin application in Android Studio. The message pasted on this question topic suddenly nocked me down.

相关标签:
4条回答
  • 2021-01-17 20:37

    I had the same error as yours. I fixed it by updating everything in Android Studio, including the SDKs. After that, I wipe the data on my emulator and run the program. It works like a charm, hopefully you can fix yours, too.

    0 讨论(0)
  • 2021-01-17 20:40
    1. emulator -list-avds
    2. adb start-server 
    3. emulator -avd <avd_name>
    

    if you see PANIC: Missing emulator engine program for 'x86' CPU.

    then you can try

    1. emulator -list-avds
    2. adb start-server
    3. $ANDROID_HOME/emulator/emulator @name_device
    

    for cold boot use flags -no-snapshot and -no-snapshot-load

    0 讨论(0)
  • 2021-01-17 20:43

    This is likely caused by insufficient permissions. Run Android Studio or your command prompt (whichever you prefer) as an administrator and that should solve your problem.

    0 讨论(0)
  • 2021-01-17 20:44

    Please also check the PATH defined in environment variables is correct. Open Command Prompt Type ECHO %PATH% and press Enter Key Check the path displayed on the screen

    If the PATH is not correct, correct the same in Start - env - Environment Variables - Path

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