1 Activity class {com.work.searchclassroom/com.work.searchclassroom.firstactivity} does not exist.
If you can use it for the first time, but then this happens, then just project-clean a little bit.
2 E/httpclient (18072): Failed to connect to/10.1.2.137 (port 8080): Connect Failed:ehostunreach (No route to host) IO ER Ror
These operation errors may occur because there is no route to the network or host. These errors may also be caused by the state information returned by the intermediary gateway or the switching node. The returned status information is not always sufficient to differentiate between network failures and host failures.
Background: Computer connection library WiFi, mobile connection library WiFi, mobile phone USB access computer
A client sends a request through a thread
New Searchtask (). Execute ("http://10.1.2.137:8080/searchClass/json/searchClass.action?week="
+mweek+ "+&time=" +mtime);
Running the server on MyEclipse server
The problem is: Sometimes it can be used normally, the network will not pass, this error.
My solution is to:
1 mobile phone connected to the computer's USB unplug, computer WiFi off, mobile WiFi off
2 phone USB plug-in PC, PC WiFi on and connected, phone connected on wifi
Just these two steps.
3 Failed to connect to/192.168.191.1 (port 8080): Connect Failed:enetunreach (Network is unreachable) IO error
This is usually due to an IP configuration error.
Try to ping some of this IP
4 Failed to connect to/192.168.191.2 (port 8080): Connect failed:econnrefused (Connection refused) IO error
Econnrefused means:
Host denial of service. This error occurs when the server process is not displayed in the request address.
PS: Mobile phone to the server to send requests, request address write phone IP is hair? The server is not on the phone, but on the computer, should be written computer IP is right, so write mobile phone IP will definitely go wrong.
/json
Wen Shun Shun (author of Jane's book)
Original link: http://www.jianshu.com/p/167d5d82639a
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".
Android Error Collection