{"action":"created","issue":{"url":"https://api.github.com/repos/orhanobut/hawk/issues/175","repository_url":"https://api.github.com/repos/orhanobut/hawk","labels_url":"https://api.github.com/repos/orhanobut/hawk/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/orhanobut/hawk/issues/175/comments","events_url":"https://api.github.com/repos/orhanobut/hawk/issues/175/events","html_url":"https://github.com/orhanobut/hawk/issues/175","id":187896578,"number":175,"title":"Crash at Hawk.init on Kotlin","user":{"login":"esafirm","id":1691440,"avatar_url":"https://avatars0.githubusercontent.com/u/1691440?v=4","gravatar_id":"","url":"https://api.github.com/users/esafirm","html_url":"https://github.com/esafirm","followers_url":"https://api.github.com/users/esafirm/followers","following_url":"https://api.github.com/users/esafirm/following{/other_user}","gists_url":"https://api.github.com/users/esafirm/gists{/gist_id}","starred_url":"https://api.github.com/users/esafirm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esafirm/subscriptions","organizations_url":"https://api.github.com/users/esafirm/orgs","repos_url":"https://api.github.com/users/esafirm/repos","events_url":"https://api.github.com/users/esafirm/events{/privacy}","received_events_url":"https://api.github.com/users/esafirm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-08T04:01:25Z","updated_at":"2018-04-02T08:19:42Z","closed_at":"2018-04-02T08:19:42Z","author_association":"NONE","body":"Android 6.0 \r\nEmulator\r\nHawk 2.0.1\r\nAlways reproducible\r\n\r\nIn Kotlin using Hawk with `NoEncryption` will trigger `illegalAccessError`\r\n```java\r\nHawk.init(application)\r\n    .setEncryption(NoEncryption())\r\n    .build()\r\n```\r\n\r\n```\r\njava.lang.IllegalAccessError: Illegal class access: 'com.package.data.Preferences' attempting to access 'com.orhanobut.hawk.Encryption' (declaration of 'com.package.data.Preferences' appears in /data/app/com.package-1/base.apk)\r\n```\r\n\r\nThis doesn't happen when i tried it in Java file within same codebase nor when i used `Hawk.init()` without `setEncryption`\r\n\r\nIt is also didn't happen with Hawk 1.x\r\n\r\nThank you 😄 \r\n"},"comment":{"url":"https://api.github.com/repos/orhanobut/hawk/issues/comments/377882529","html_url":"https://github.com/orhanobut/hawk/issues/175#issuecomment-377882529","issue_url":"https://api.github.com/repos/orhanobut/hawk/issues/175","id":377882529,"user":{"login":"orhanobut","id":1089616,"avatar_url":"https://avatars3.githubusercontent.com/u/1089616?v=4","gravatar_id":"","url":"https://api.github.com/users/orhanobut","html_url":"https://github.com/orhanobut","followers_url":"https://api.github.com/users/orhanobut/followers","following_url":"https://api.github.com/users/orhanobut/following{/other_user}","gists_url":"https://api.github.com/users/orhanobut/gists{/gist_id}","starred_url":"https://api.github.com/users/orhanobut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orhanobut/subscriptions","organizations_url":"https://api.github.com/users/orhanobut/orgs","repos_url":"https://api.github.com/users/orhanobut/repos","events_url":"https://api.github.com/users/orhanobut/events{/privacy}","received_events_url":"https://api.github.com/users/orhanobut/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T08:19:42Z","updated_at":"2018-04-02T08:19:42Z","author_association":"OWNER","body":"👍 I'll definitely check this issue to support Kotlin. I'll follow this issue in kotlin ticket. #211"}}
{"actor":{"display_login":"orhanobut"}}