Android Error Collection

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.