Group Group Group Group Group Group Group Group Group

Error of compilation chapter 3

#1

Hello !
I am a beginner in Android development and I wanted to start learning with Kotlin. I bought the android apprentice book and I am currently following chapter 3. On page 71, I try to run the app after implementing the countdowntimer and I have 2 compilations errors:

1/ Object is not abstract and does not implement abstract base class member public abstract fun onFinish(): Unit defined in android.os.CountDownTimer
2/ ‘OnFinish’ overrides nothing

Would you have some explanation ?

Thank you very much for your help
Regards
Jérôme

#2

@daemonic_daz Can you please help with this when you get a chance? Thank you - much appreciated! :]

#3

I used the source code provided by the book and it runs perfectly when using the full code, so I probably did something wrong !

#4

HI gg33,

Thank you for getting in touch, glad to hear you’re making progress.

If you’re still interested in an explanation as to what’s going on in your own code, feel free to you post the offending snippets here so we can go through it together.

Hope to hear back soon,

Darryl

#5

Thank you very much for your feedback, it’s nice to know I could ask here if I have troubles in the future.

Best regards
Jérôme