java.net.UnknownHostException: Unable to resolve host "earthquake.usgs.gov": No address associated with hostname

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android - Cursor returns a nullpointerexception when Invoked..How to solve this?

    Stack Overflow | 7 months ago | Anirudh Srivastav
    java.net.UnknownHostException: Unable to resolve host "earthquake.usgs.gov": No address associated with hostname
  2. 0

    libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)

    GitHub | 2 years ago | Dimoshka
    java.net.UnknownHostException: Unable to resolve host "download.jw.org": No address associated with hostname
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)

    GitHub | 3 years ago | Amab
    java.net.UnknownHostException: Unable to resolve host "swad.ugr.es": No address associated with hostname
  5. 0

    libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)

    GitHub | 3 years ago | Amab
    java.net.UnknownHostException: Unable to resolve host "swad.ugr.es": No address associated with hostname

  1. Indri Yunita 1 times, last 2 months ago
  2. bmacedo 10 times, last 3 months ago
  3. VeryRedChris 1 times, last 4 months ago
  4. Akshay 8 times, last 5 months ago
  5. Saravana Kumar Chinnaraj 5 times, last 10 months ago
2 more registered users
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. libcore.io.GaiException

    getaddrinfo failed: EAI_NODATA (No address associated with hostname)

    at libcore.io.Posix.getaddrinfo()
  2. Android
    ForwardingOs.getaddrinfo
    1. libcore.io.Posix.getaddrinfo(Native Method)
    2. libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:61)
    2 frames
  3. Java RT
    InetAddress.getAllByName
    1. java.net.InetAddress.lookupHostByName(InetAddress.java:405)
    2. java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
    3. java.net.InetAddress.getAllByName(InetAddress.java:214)
    3 frames
  4. Android
    HttpURLConnectionImpl.getResponseCode
    1. com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
    2. com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
    3. com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
    4. com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
    5. com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
    6. com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
    7. com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
    8. com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
    9. com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
    9 frames
  5. com.quakes.user
    MainActivity$retrieveEarthquakeData.doInBackground
    1. com.quakes.user.mapquake.MainActivity$retrieveEarthquakeData.doInBackground(MainActivity.java:211)
    2. com.quakes.user.mapquake.MainActivity$retrieveEarthquakeData.doInBackground(MainActivity.java:197)
    2 frames
  6. Android Platform
    AsyncTask$2.call
    1. android.os.AsyncTask$2.call(AsyncTask.java:288)
    1 frame
  7. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    1 frame
  8. Android Platform
    AsyncTask$SerialExecutor$1.run
    1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
    1 frame
  9. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    3. java.lang.Thread.run(Thread.java:841)
    3 frames