Creating unbound service in Kotlin
<p>I'm trying to create a simple unbound service in kotlin, but I can't. When I override <code>onBind()</code> method in Java I can return <code>null</code>, but in kotlin it says I'm only allowed to return <code>IBinder</code> and not <code>IBinder?</code>, that means it can't be <code>null</code>. Any ideas how to fix that except rewriting MyService class into Java? </p>

<p>[SOLVED] Thank you, guys! I can realy change <code>IBinder</code> to <code>IBinder?</code>. It works!!</p>