{"action":"created","issue":{"url":"https://api.github.com/repos/tomakehurst/wiremock/issues/252","labels_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/252/comments","events_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/252/events","html_url":"https://github.com/tomakehurst/wiremock/issues/252","id":62683091,"number":252,"title":"How I can create  wiremock server  in Andriod platform?","user":{"login":"flyfeihuang","id":11538306,"avatar_url":"https://avatars.githubusercontent.com/u/11538306?v=3","gravatar_id":"","url":"https://api.github.com/users/flyfeihuang","html_url":"https://github.com/flyfeihuang","followers_url":"https://api.github.com/users/flyfeihuang/followers","following_url":"https://api.github.com/users/flyfeihuang/following{/other_user}","gists_url":"https://api.github.com/users/flyfeihuang/gists{/gist_id}","starred_url":"https://api.github.com/users/flyfeihuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flyfeihuang/subscriptions","organizations_url":"https://api.github.com/users/flyfeihuang/orgs","repos_url":"https://api.github.com/users/flyfeihuang/repos","events_url":"https://api.github.com/users/flyfeihuang/events{/privacy}","received_events_url":"https://api.github.com/users/flyfeihuang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-18T12:34:25Z","updated_at":"2015-10-15T00:18:36Z","closed_at":null,"body":"Recently,I want to test HTTP request/response for a Andriod App .So, I don't want create a -wiremock stanalone in my PC,and gradle it to Android program in Anriod Studio.However,I meet a lot trouble on it.\r\n\r\nThis is my part of build.gradle:\r\ndependencies {\r\n    compile fileTree(dir: 'libs', include: ['*.jar'])\r\n    compile 'com.android.support:appcompat-v7:21.0.3'\r\n    compile ('com.github.tomakehurst:wiremock:1.54')\r\n            {\r\n                exclude group: 'org.json', module: 'json'\r\n                exclude group:'org.apache.httpcomponents',module:'httpclient'\r\n                exclude group:'org.mortbay.jetty',module:'jetty'\r\n                exclude group:'com.google.guava',module:'guava'\r\n                exclude group:'com.fasterxml.jackson.core',module:'jackson-core'\r\n                exclude group:'com.fasterxml.jackson.core',module:\"jackson-annotations\"\r\n                exclude group:'com.fasterxml.jackson.core',module:'jackson-databind'\r\n                exclude group: 'org.json', module: 'json'\r\n                exclude group:'org.skyscreamer',module:'jsonassert'\r\n                exclude group:'xmlunit',module:'xmlunit'\r\n                exclude group:'com.jayway.jsonpath',module:'json-path'\r\n                exclude group:'net.sf.jopt-simple',module:'jopt-simple'\r\n                exclude group:'org.apache.httpcomponents',module:'httpclient'\r\n\r\n            }\r\n}\r\n\r\nexception:03-18 20:23:12.908  28398-28398/com.example.administrator.hellowworld E/AndroidRuntime﹕ FATAL EXCEPTION: main\r\n    Process: com.example.administrator.hellowworld, PID: 28398\r\n    java.lang.NoClassDefFoundError: org.apache.http.impl.client.HttpClientBuilder\r\n            at com.github.tomakehurst.wiremock.http.HttpClientFactory.createClient(HttpClientFactory.java:45)\r\n            at com.github.tomakehurst.wiremock.http.HttpClientFactory.createClient(HttpClientFactory.java:91)\r\n            at com.github.tomakehurst.wiremock.http.HttpClientFactory.createClient(HttpClientFactory.java:95)\r\n            at com.github.tomakehurst.wiremock.http.HttpClientFactory.createClient(HttpClientFactory.java:99)\r\n            at com.github.tomakehurst.wiremock.client.HttpAdminClient.<init>(HttpAdminClient.java:56)\r\n            at com.github.tomakehurst.wiremock.client.HttpAdminClient.<init>(HttpAdminClient.java:60)\r\n            at com.github.tomakehurst.wiremock.client.WireMock.<init>(WireMock.java:61)\r\n            at com.github.tomakehurst.wiremock.client.WireMock.<clinit>(WireMock.java:42)\r\n            at com.example.administrator.hellowworld.MainActivity.<init>(MainActivity.java:16)\r\n            at java.lang.Class.newInstanceImpl(Native Method)\r\n            at java.lang.Class.newInstance(Class.java:1215)\r\n            at android.app.Instrumentation.newActivity(Instrumentation.java:1061)\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2263)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2398)\r\n            at android.app.ActivityThread.access$800(ActivityThread.java:159)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329)\r\n            at android.os.Handler.dispatchMessage(Handler.java:110)\r\n            at android.os.Looper.loop(Looper.java:193)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5367)\r\n            at java.lang.reflect.Method.invokeNative(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:515)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:663)\r\n            at dalvik.system.NativeStart.main(Native Method)\r\n\r\n\r\nWho can help me?Thank you very much!"},"comment":{"url":"https://api.github.com/repos/tomakehurst/wiremock/issues/comments/148239082","html_url":"https://github.com/tomakehurst/wiremock/issues/252#issuecomment-148239082","issue_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/252","id":148239082,"user":{"login":"cdewangan","id":8389458,"avatar_url":"https://avatars.githubusercontent.com/u/8389458?v=3","gravatar_id":"","url":"https://api.github.com/users/cdewangan","html_url":"https://github.com/cdewangan","followers_url":"https://api.github.com/users/cdewangan/followers","following_url":"https://api.github.com/users/cdewangan/following{/other_user}","gists_url":"https://api.github.com/users/cdewangan/gists{/gist_id}","starred_url":"https://api.github.com/users/cdewangan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdewangan/subscriptions","organizations_url":"https://api.github.com/users/cdewangan/orgs","repos_url":"https://api.github.com/users/cdewangan/repos","events_url":"https://api.github.com/users/cdewangan/events{/privacy}","received_events_url":"https://api.github.com/users/cdewangan/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T00:18:36Z","updated_at":"2015-10-15T00:18:36Z","body":"+1 for this support, I also tried pointing my Android app to WireMock but its not working. Please let me know if someone had successful implementation. \r\n\r\nI will be good with emulator also."}}