kotlin.NotImplementedError: An operation is not implemented: not implemented Error from ImageButton Click

Just remove TODO( ... ) from your onClickListener:

override fun onClick(v: View?) {
    // No TODO here
    when (v?.id) {
        ...
    }
}

TODO(...) is Kotlin function which always throws NotImplementedError. If you want to mark something with TODO but to not throw exception – just use TODO with comments:

override fun onClick(v: View?) {
    //TODO: implement later
    when (v?.id) {
        ...
    }
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)