Declare ImageView in kotlin Android Studio [closed]

Use lateinit which will allow you to initialize the property later on.

lateinit var logo: ImageView

override fun onCreate(savedInstanceState: Bundle?) {
    logo = findViewById(

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top