{"action":"created","issue":{"url":"https://api.github.com/repos/kohesive/injekt/issues/33","repository_url":"https://api.github.com/repos/kohesive/injekt","labels_url":"https://api.github.com/repos/kohesive/injekt/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/kohesive/injekt/issues/33/comments","events_url":"https://api.github.com/repos/kohesive/injekt/issues/33/events","html_url":"https://github.com/kohesive/injekt/issues/33","id":140751212,"number":33,"title":"Problems w/ Android 4.x","user":{"login":"brianegan","id":126604,"avatar_url":"https://avatars.githubusercontent.com/u/126604?v=3","gravatar_id":"","url":"https://api.github.com/users/brianegan","html_url":"https://github.com/brianegan","followers_url":"https://api.github.com/users/brianegan/followers","following_url":"https://api.github.com/users/brianegan/following{/other_user}","gists_url":"https://api.github.com/users/brianegan/gists{/gist_id}","starred_url":"https://api.github.com/users/brianegan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianegan/subscriptions","organizations_url":"https://api.github.com/users/brianegan/orgs","repos_url":"https://api.github.com/users/brianegan/repos","events_url":"https://api.github.com/users/brianegan/events{/privacy}","received_events_url":"https://api.github.com/users/brianegan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2016-03-14T18:01:21Z","updated_at":"2016-03-23T23:37:11Z","closed_at":null,"body":"Hello! Trying to get Injekt going with a test project of mine, and running into trouble. It works great on Lollipop+, but on Android 4.x I'm running into trouble.\r\n\r\nThe error I'm seeing:\r\n\r\n```\r\njava.lang.RuntimeException: Unable to instantiate application com.brianegan.bansa.counter.Application: uy.kohesive.injekt.api.InjektionException: No registered instance or factory for type com.brianegan.bansa.Store<com.brianegan.bansa.counter.ApplicationState, com.brianegan.bansa.Action>\r\n    at android.app.LoadedApk.makeApplication(LoadedApk.java:526)\r\n    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4390)\r\n    at android.app.ActivityThread.access$1500(ActivityThread.java:139)\r\n    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1260)\r\n    at android.os.Handler.dispatchMessage(Handler.java:102)\r\n    at android.os.Looper.loop(Looper.java:136)\r\n    at android.app.ActivityThread.main(ActivityThread.java:5105)\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:792)\r\n    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)\r\n    at dalvik.system.NativeStart.main(Native Method)\r\nCaused by: uy.kohesive.injekt.api.InjektionException: No registered instance or factory for type com.brianegan.bansa.Store<com.brianegan.bansa.counter.ApplicationState, com.brianegan.bansa.Action>\r\n    at uy.kohesive.injekt.registry.default.DefaultRegistrar.getInstance(DefaultRegistrar.kt:99)\r\n    at uy.kohesive.injekt.api.InjektScope.getInstance(Scope.kt)\r\n    at com.brianegan.bansa.counter.Application.<init>(Application.kt:30)\r\n    at java.lang.Class.newInstanceImpl(Native Method)\r\n    at java.lang.Class.newInstance(Class.java:1208)\r\n    at android.app.Instrumentation.newApplication(Instrumentation.java:990)\r\n    at android.app.Instrumentation.newApplication(Instrumentation.java:975)\r\n    at android.app.LoadedApk.makeApplication(LoadedApk.java:521)\r\n    ... 11 more\r\n```\r\n\r\nMy code can be found here:\r\nhttps://github.com/brianegan/bansa/blob/master/examples/counter/src/main/kotlin/com/brianegan/bansa/counter/Application.kt\r\n\r\nI also tried Injekting a module in `onCreate` instead of using a companion object, with no luck. Feeling like a bit of a n00b here though, trying to figure out what I'm doing wrong! Any advice would be much appreciated :)"},"comment":{"url":"https://api.github.com/repos/kohesive/injekt/issues/comments/200583303","html_url":"https://github.com/kohesive/injekt/issues/33#issuecomment-200583303","issue_url":"https://api.github.com/repos/kohesive/injekt/issues/33","id":200583303,"user":{"login":"brianegan","id":126604,"avatar_url":"https://avatars.githubusercontent.com/u/126604?v=3","gravatar_id":"","url":"https://api.github.com/users/brianegan","html_url":"https://github.com/brianegan","followers_url":"https://api.github.com/users/brianegan/followers","following_url":"https://api.github.com/users/brianegan/following{/other_user}","gists_url":"https://api.github.com/users/brianegan/gists{/gist_id}","starred_url":"https://api.github.com/users/brianegan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianegan/subscriptions","organizations_url":"https://api.github.com/users/brianegan/orgs","repos_url":"https://api.github.com/users/brianegan/repos","events_url":"https://api.github.com/users/brianegan/events{/privacy}","received_events_url":"https://api.github.com/users/brianegan/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T23:37:11Z","updated_at":"2016-03-23T23:37:11Z","body":"<img width=\"1548\" alt=\"screenshot 2016-03-24 00 36 25\" src=\"https://cloud.githubusercontent.com/assets/126604/14004192/89007f20-f158-11e5-8d96-04b99eb53dd6.png\">\r\n"}}