+ 1

Kotlin - onClick Listener doesn't work - unreachable Code

Hello Community Could you say whats wrong with my code, please? "Code unreachable" "override fun overrides nothing" https://www.sololearn.com/post/1640127/?ref=app Thank you.

24th Apr 2022, 9:07 AM
Julius
1 Resposta
+ 2
In order to use override, the parent class must define the same method. override fun overrides nothing means the parent class does not have a onCreateView method. Not sure about the Code unreachable error without seeing more code but the compiler is stating you can not execute the code for some reason. It might be because of the unnecessary override or there could be another error causing it.
24th Apr 2022, 12:10 PM
John Wells
John Wells - avatar