{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/506","repository_url":"https://api.github.com/repos/OfficeDev/ews-java-api","labels_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/506/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/506/comments","events_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/506/events","html_url":"https://github.com/OfficeDev/ews-java-api/issues/506","id":140436006,"number":506,"title":"Didn't find class \"org.apache.http.client.protocol.HttpClientContext\"","user":{"login":"mytoughlife","id":12000110,"avatar_url":"https://avatars.githubusercontent.com/u/12000110?v=3","gravatar_id":"","url":"https://api.github.com/users/mytoughlife","html_url":"https://github.com/mytoughlife","followers_url":"https://api.github.com/users/mytoughlife/followers","following_url":"https://api.github.com/users/mytoughlife/following{/other_user}","gists_url":"https://api.github.com/users/mytoughlife/gists{/gist_id}","starred_url":"https://api.github.com/users/mytoughlife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mytoughlife/subscriptions","organizations_url":"https://api.github.com/users/mytoughlife/orgs","repos_url":"https://api.github.com/users/mytoughlife/repos","events_url":"https://api.github.com/users/mytoughlife/events{/privacy}","received_events_url":"https://api.github.com/users/mytoughlife/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-13T01:55:23Z","updated_at":"2016-03-13T20:34:16Z","closed_at":null,"body":"@vbauer\r\n\r\nI'm very new to Andriod developement and I'm trying this libary. \r\n\r\nGradle is like this:\r\n\r\n```\r\ndependencies {\r\n    compile fileTree(include: ['*.jar'], dir: 'libs')\r\n    testCompile 'junit:junit:4.12'\r\n    compile 'com.android.support:appcompat-v7:23.2.0'\r\n    compile 'com.android.support:design:23.2.0'\r\n    compile 'com.microsoft.ews-java-api:ews-java-api:2.0'\r\n}\r\n```\r\n\r\n\r\nThere are some comipiling warnings:\r\n\r\n```\r\nInformation:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources]\r\nWarning:Dependency org.apache.httpcomponents:httpclient:4.4.1 is ignored for debug as it may be conflicting with the internal version provided by Android.\r\n         In case of problem, please repackage it with jarjar to change the class packages\r\nWarning:Dependency commons-logging:commons-logging:1.2 is ignored for debug as it may be conflicting with the internal version provided by Android.\r\n         In case of problem, please repackage it with jarjar to change the class packages\r\nWarning:Dependency org.apache.httpcomponents:httpclient:4.4.1 is ignored for release as it may be conflicting with the internal version provided by Android.\r\n         In case of problem, please repackage it with jarjar to change the class packages\r\nWarning:Dependency commons-logging:commons-logging:1.2 is ignored for release as it may be conflicting with the internal version provided by Android.\r\n         In case of problem, please repackage it with jarjar to change the class packages\r\n```\r\n\r\n\r\n\r\nEventually I launched the app in the emulator and clicked the button to make EWS call:\r\n```\r\nCaused by: java.lang.ClassNotFoundException: Didn't find class \"org.apache.http.client.protocol.HttpClientContext\" on path: DexPathList[[zip file \"/data/app/domain.test.android.jasonyu.myfirstapp-2/base.apk\"],nativeLibraryDirectories=[/data/app/domain.test.android.jasonyu.myfirstapp-2/lib/x86, /vendor/lib, /system/lib]]\r\n    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)\r\n    at java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\n    at microsoft.exchange.webservices.data.core.ExchangeServiceBase.initializeHttpContext(ExchangeServiceBase.java:261) \r\n    at microsoft.exchange.webservices.data.core.ExchangeServiceBase.setUseDefaultCredentials(ExchangeServiceBase.java:677) \r\n    at microsoft.exchange.webservices.data.core.ExchangeServiceBase.<init>(ExchangeServiceBase.java:173) \r\n    at microsoft.exchange.webservices.data.core.ExchangeService.<init>(ExchangeService.java:3718) \r\n    at domain.test.android.jasonyu.myfirstapp.MainActivity.onButtonGoClick(MainActivity.java:94) \r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/comments/196047399","html_url":"https://github.com/OfficeDev/ews-java-api/issues/506#issuecomment-196047399","issue_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/506","id":196047399,"user":{"login":"mytoughlife","id":12000110,"avatar_url":"https://avatars.githubusercontent.com/u/12000110?v=3","gravatar_id":"","url":"https://api.github.com/users/mytoughlife","html_url":"https://github.com/mytoughlife","followers_url":"https://api.github.com/users/mytoughlife/followers","following_url":"https://api.github.com/users/mytoughlife/following{/other_user}","gists_url":"https://api.github.com/users/mytoughlife/gists{/gist_id}","starred_url":"https://api.github.com/users/mytoughlife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mytoughlife/subscriptions","organizations_url":"https://api.github.com/users/mytoughlife/orgs","repos_url":"https://api.github.com/users/mytoughlife/repos","events_url":"https://api.github.com/users/mytoughlife/events{/privacy}","received_events_url":"https://api.github.com/users/mytoughlife/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T20:34:16Z","updated_at":"2016-03-13T20:34:16Z","body":"@vbauer  Thanks for your reply. \r\n\r\nThat was the first thing I tried. \"Make Project\" succeeded, but failed with below error if I tried to run it:\r\n\r\n```\r\n:app:compileDebugSources UP-TO-DATE\r\n:app:transformClassesWithDexForDebug\r\nUNEXPECTED TOP-LEVEL EXCEPTION:\r\nError:Execution failed for task ':app:transformClassesWithDexForDebug'.\r\n> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\\Program Files\\Java\\jdk1.8.0_73\\bin\\java.exe'' finished with non-zero exit value 2\r\n```\r\n\r\nThen I read about http://stackoverflow.com/questions/33369163/execution-failed-for-task-apptransformclasseswithdexfordebug-while-implement \r\n\r\n\r\nAfter adding multiDexEnabled true, I got \r\n```\r\n\r\n:app:compileDebugJavaWithJavac UP-TO-DATE\r\n:app:compileDebugNdk UP-TO-DATE\r\n:app:compileDebugSources UP-TO-DATE\r\n:app:transformClassesWithJarMergingForDebug FAILED\r\nError:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.\r\n> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/http/concurrent/Cancellable.class\r\n```\r\n\r\n\r\n\r\n"}}