{"action":"created","issue":{"url":"https://api.github.com/repos/alipov/ews-android-api/issues/2","labels_url":"https://api.github.com/repos/alipov/ews-android-api/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/alipov/ews-android-api/issues/2/comments","events_url":"https://api.github.com/repos/alipov/ews-android-api/issues/2/events","html_url":"https://github.com/alipov/ews-android-api/issues/2","id":110881895,"number":2,"title":"missing class : org.apache.log4j.Priority (API Level 17)","user":{"login":"tmakin","id":829348,"avatar_url":"https://avatars.githubusercontent.com/u/829348?v=3","gravatar_id":"","url":"https://api.github.com/users/tmakin","html_url":"https://github.com/tmakin","followers_url":"https://api.github.com/users/tmakin/followers","following_url":"https://api.github.com/users/tmakin/following{/other_user}","gists_url":"https://api.github.com/users/tmakin/gists{/gist_id}","starred_url":"https://api.github.com/users/tmakin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmakin/subscriptions","organizations_url":"https://api.github.com/users/tmakin/orgs","repos_url":"https://api.github.com/users/tmakin/repos","events_url":"https://api.github.com/users/tmakin/events{/privacy}","received_events_url":"https://api.github.com/users/tmakin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-11T20:52:59Z","updated_at":"2015-10-12T14:36:31Z","closed_at":null,"body":"Hi Alex,\r\n\r\nI've been trying to get this working on an API Level 17 emulator, but the library was throwing a missing class exception related to `log4j`\r\n\r\n```\r\nE/dalvikvm: Could not find class 'org.apache.log4j.Priority', referenced from method android.org.apache.commons.logging.impl.Log4JLogger.<clinit>\r\n```\r\n\r\nI haven't found the origin of the error, but I managed to get round it by pasting in 2 extra shim classes into the path `ews-android-api/src/main/java/org/apache/log4j`. I then recompiled with your gradlew script.\r\n\r\nThe classes I added were `Priority.java` and `Level.java` stolen from the project below without modification: https://code.google.com/p/log4j-android/\r\n\r\nI can't be sure if these extra classes have any unwanted side effects, but they worked for me. Note that the package name used was `org.apache`, without the `android.`prefix\r\n\r\nI've now done successful EWS tests on API levels 17, 21 and 23. I'm running a Nexus 7 x86 emulator on a mac book pro.\r\n\r\nI'd be interested to know your thoughts on this.\r\n\r\n--------------\r\n\r\nEDIT: Just checked the logs for my patched version of the library and it is still searching for `log4j` stuff but it seems these errors are non fatal. For example:\r\n```\r\nI/dalvikvm: Could not find method org.apache.log4j.Logger.getName, referenced from method android.org.apache.commons.logging.impl.Log4JLogger.<init>\r\n````"},"comment":{"url":"https://api.github.com/repos/alipov/ews-android-api/issues/comments/147415092","html_url":"https://github.com/alipov/ews-android-api/issues/2#issuecomment-147415092","issue_url":"https://api.github.com/repos/alipov/ews-android-api/issues/2","id":147415092,"user":{"login":"alipov","id":3884590,"avatar_url":"https://avatars.githubusercontent.com/u/3884590?v=3","gravatar_id":"","url":"https://api.github.com/users/alipov","html_url":"https://github.com/alipov","followers_url":"https://api.github.com/users/alipov/followers","following_url":"https://api.github.com/users/alipov/following{/other_user}","gists_url":"https://api.github.com/users/alipov/gists{/gist_id}","starred_url":"https://api.github.com/users/alipov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alipov/subscriptions","organizations_url":"https://api.github.com/users/alipov/orgs","repos_url":"https://api.github.com/users/alipov/repos","events_url":"https://api.github.com/users/alipov/events{/privacy}","received_events_url":"https://api.github.com/users/alipov/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T14:36:31Z","updated_at":"2015-10-12T14:36:31Z","body":"It's configured somewhere, I'll look into it.\r\n\r\nI've tested on both KitKat and Lollipop, saw the dalvikm warnings but never crashed. \r\nCan you post the crash stack trace? \r\n"}}