SoFunction
Updated on 2025-04-07

Android program cannot be started. Specific solution

Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\' and can be executed.


Discussion of encountering problems:

Run Android program console output

    [2012-07-18 16:18:26 - ] The connection to adb is down, and a severe error has occured.
    [2012-07-18 16:18:26 - ] You must restart adb and Eclipse.
    [2012-07-18 16:18:26 - ] Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\' and can be executed.

Solve the problem:

Baidu Google is talking about the task manager killing the adb or restarting the adb server, but my task manager does not have adb. It is guessed that a program occupied the adb port. So follow this idea to find it.

5037 is the default port of adb. Check the port as follows:

      netstat -aon|findstr "5037"

      TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       6540

It was found that 6540 occupied port 5037. Continue to check the task of 6540 and found that it was wandoujia. As shown below

        tasklist|findstr "6540"


        wandoujia_daemon.exe          6540 Console                    1      4,276 K

The next problem will be solved. In the task manager, kill the wandoujia_daemon.exe and run the android program, ok.

1. Close the pea pod process

kill-server

start-server

4. Restart Eclipse

OK