Invalid notification (no valid small icon)

Kotlin just calls appropriate java class from Android API. In your case the error occurs not on kotlin side, but on java side.
Particularly, it seems that Notification.Builder requires additional parameter (small icon) that you have not provided like in example from documentation. In this case the code in kotlin will be exactly the same as in Java not counting new operator which is omitted in kotlin.