Solutions for this Chapter

I have noticed that the application crashes when compiling the project after adding the Image Buttons when the android:src attributes are added.

Can someone explain why GeoQuiz has stopped error could be happening?

I noticed to. How to solve this?

I didn’t see any such error like this …

You must change the declarations for nextButton and prevButton to ImageButtons.
private lateinit var prevButton: ImageButton
private lateinit var nextButton: ImageButton

1 Like

Everything works fine for me

@Gawitt Maybe provide a stacktrace for further debugging!. But I’d second @curion4 (his solution seems to be whats needed).