{"action":"created","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/1862","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/1862/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/1862/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/1862/events","html_url":"https://github.com/robolectric/robolectric/issues/1862","id":84220628,"number":1862,"title":"Need to separate out org.apache.http shadows to compile against M developer preview","user":{"login":"jhansche","id":99272,"avatar_url":"https://avatars.githubusercontent.com/u/99272?v=3","gravatar_id":"","url":"https://api.github.com/users/jhansche","html_url":"https://github.com/jhansche","followers_url":"https://api.github.com/users/jhansche/followers","following_url":"https://api.github.com/users/jhansche/following{/other_user}","gists_url":"https://api.github.com/users/jhansche/gists{/gist_id}","starred_url":"https://api.github.com/users/jhansche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhansche/subscriptions","organizations_url":"https://api.github.com/users/jhansche/orgs","repos_url":"https://api.github.com/users/jhansche/repos","events_url":"https://api.github.com/users/jhansche/events{/privacy}","received_events_url":"https://api.github.com/users/jhansche/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robolectric/robolectric/labels/3.1","name":"3.1","color":"bfd4f2"},{"url":"https://api.github.com/repos/robolectric/robolectric/labels/enhancement","name":"enhancement","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/robolectric/robolectric/milestones/7","html_url":"https://github.com/robolectric/robolectric/milestones/3.1","labels_url":"https://api.github.com/repos/robolectric/robolectric/milestones/7/labels","id":1083024,"number":7,"title":"3.1","description":"","creator":{"login":"erd","id":184194,"avatar_url":"https://avatars.githubusercontent.com/u/184194?v=3","gravatar_id":"","url":"https://api.github.com/users/erd","html_url":"https://github.com/erd","followers_url":"https://api.github.com/users/erd/followers","following_url":"https://api.github.com/users/erd/following{/other_user}","gists_url":"https://api.github.com/users/erd/gists{/gist_id}","starred_url":"https://api.github.com/users/erd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erd/subscriptions","organizations_url":"https://api.github.com/users/erd/orgs","repos_url":"https://api.github.com/users/erd/repos","events_url":"https://api.github.com/users/erd/events{/privacy}","received_events_url":"https://api.github.com/users/erd/received_events","type":"User","site_admin":false},"open_issues":44,"closed_issues":16,"state":"open","created_at":"2015-04-25T00:15:41Z","updated_at":"2015-10-15T16:57:29Z","due_on":null,"closed_at":null},"comments":23,"created_at":"2015-06-02T21:31:23Z","updated_at":"2015-10-18T00:17:27Z","closed_at":null,"body":"When setting `compileSdkVersion 'android-MNC'`, the `org.apache.http` classes are no longer on the compile classpath.  These classes have been deprecated since API level 22, and are now being removed completely in the M developer preview.\r\n\r\nAttempting to compile a test class against Robolectric fails when calling `Robolectric.shadowOf(***)` (regardless of actual argument), because of:\r\n\r\n```\r\nerror: cannot access AndroidHttpClient\r\n```\r\n\r\nThere are other shadows that have been moved out into separate \"plugin\" dependency packages, so the same should be done for anything that references org.apache.http.\r\n\r\nThe other org.apache.http classes were moved out to the `shadows-httpclient` artifact;  but `android.net.http.AndroidHttpClient` was also removed, while the `ShadowAndroidHttpClient` class was not."},"comment":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/comments/148963111","html_url":"https://github.com/robolectric/robolectric/issues/1862#issuecomment-148963111","issue_url":"https://api.github.com/repos/robolectric/robolectric/issues/1862","id":148963111,"user":{"login":"erd","id":184194,"avatar_url":"https://avatars.githubusercontent.com/u/184194?v=3","gravatar_id":"","url":"https://api.github.com/users/erd","html_url":"https://github.com/erd","followers_url":"https://api.github.com/users/erd/followers","following_url":"https://api.github.com/users/erd/following{/other_user}","gists_url":"https://api.github.com/users/erd/gists{/gist_id}","starred_url":"https://api.github.com/users/erd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erd/subscriptions","organizations_url":"https://api.github.com/users/erd/orgs","repos_url":"https://api.github.com/users/erd/repos","events_url":"https://api.github.com/users/erd/events{/privacy}","received_events_url":"https://api.github.com/users/erd/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T00:17:27Z","updated_at":"2015-10-18T00:17:27Z","body":"Don't panic! Yes, this will need to be done to support API 23, which @jongerrish is working on."}}