Hey guys is this an appropriate place to ask about...
# android
j
Hey guys is this an appropriate place to ask about potential issues with Kotlin on Android? 🤔 - I have a really bizzar issue that might be being caused by me but anyways… I’ve created a simple event dispatcher that’s lazy initialised like so
Copy code
companion object {
        val instance by lazy { EventDispatcher() }
    }
and whenever I add anything to it and try to dispatch an event, I receive the following error
java.lang.NoClassDefFoundError: jonnothebonno.me.app.notifications.events.EventDispatcher$dispatchEvent$1
The weird thing is, this only appears to happen on older mobiles. Works perfect on my pixel but crashes on my nexus 5. I’m using
Kotlin 1.1.1
and
gradle 2.3.0
2 replies Hey Louis. No it happens on both debug and release builds. 😰