Home > other >  How to solve name expected error in intent on kotlin?
How to solve name expected error in intent on kotlin?

Time:03-09

I have "Name expected" error in my Intent() second argument. Are there any missing arguments?

fun setListeners() {
    val intent = Intent(applicationContext, SignUpActivity.class)
}

CodePudding user response:

You should write instead :

val intent = Intent(applicationContext, SignUpActivity::class.java)
  • Related