{"action":"closed","issue":{"url":"https://api.github.com/repos/amplitude/Amplitude-Android/issues/66","labels_url":"https://api.github.com/repos/amplitude/Amplitude-Android/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/amplitude/Amplitude-Android/issues/66/comments","events_url":"https://api.github.com/repos/amplitude/Amplitude-Android/issues/66/events","html_url":"https://github.com/amplitude/Amplitude-Android/issues/66","id":110293646,"number":66,"title":"Remove references to Apache HTTPClient classes","user":{"login":"benjamin-bader","id":512212,"avatar_url":"https://avatars.githubusercontent.com/u/512212?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamin-bader","html_url":"https://github.com/benjamin-bader","followers_url":"https://api.github.com/users/benjamin-bader/followers","following_url":"https://api.github.com/users/benjamin-bader/following{/other_user}","gists_url":"https://api.github.com/users/benjamin-bader/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamin-bader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamin-bader/subscriptions","organizations_url":"https://api.github.com/users/benjamin-bader/orgs","repos_url":"https://api.github.com/users/benjamin-bader/repos","events_url":"https://api.github.com/users/benjamin-bader/events{/privacy}","received_events_url":"https://api.github.com/users/benjamin-bader/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-07T18:59:56Z","updated_at":"2015-10-14T21:01:26Z","closed_at":"2015-10-14T21:01:26Z","body":"Android M has removed HTTPClient entirely.  Amplitude has switched to OkHttp for making posts, but the client still references Apache - spuriously, from what I can tell.\r\n\r\nIn any event, the reference means that Amplitude can't be used on M without also including the legacy Apache stuff manually.\r\n\r\nAs far as I can tell, the fix is one line - replace `org.apache.http.conn.HttpHostConnectException` with `java.net.ConnectException` in `AmplitudeClient#makeEventUploadPostRequest`."}}