Testing the software today, encountered a bug, because development said that there is no longer, so in order to better track this problem, we need to crawl the recurrence of the log. On the Internet to check the relevant information, combined with their own problems encountered, summarized as follows.
1. How to crawl Android app log
2. ADB server is an out of date.killing solution
3. How to successfully connect to an Android phone in eclipse
1. There are many ways to crawl the Android app log, just write the method you use
- Installing the Android SDK
- Open command Line
- Go to the folder where the SDK is located and locate the Adb.exe folder, such as: C:\Program Files (x86) \android\android-sdk\platform-tools
- Enter ADB logcat to determine if log can be correctly output
Refer to Http://www.doc88.com/p-891572811538.html
2. Encountering ADB server is out of date.killing issues
Refer to Http://jingyan.baidu.com/article/d621e8da0dee022865913fce.html
Mainly to ensure that the ADB port 5037 is not occupied, I myself because I opened 91 assistants, so occupy this port, need to close the 91 assistant or uninstall
In command-line cmd, you can view the command for the port condition:
- ADB Nodaemon Server, see what the ADB's port number is, typically 5037
- Netstat-ano | Findstr "5037" to view applications that occupy this port, close the app from Program Manager
3. How to successfully connect to an Android phone in eclipse
Tried to export the log with Eclipse, but never connected to the phone, then gave up. After checking some information, we found that the ADB port is still occupied by the problem. The solution was the same as the 2nd.
Refer to Http://jingyan.baidu.com/article/91f5db1bd6a2e11c7f05e32f.html
Successful export of log, and solve the problems encountered, or there are small achievements.
Because ADB logcat exports a lot of content, I cleaned up the previous cache before I grabbed the log, and I could use the command: ADB logcat-c
Then use the ADB logcat command to capture the corresponding log
Capture the Android app's log