Kotlin Android start new Activity

后端 未结 17 2297
不知归路
不知归路 2020-12-07 23:33

I want to start another activity on Android but I get this error:

Please specify constructor invocation; classifier \'Page2\' does not have a companio

17条回答
  •  鱼传尺愫
    2020-12-08 00:29

    Remember to add the activity you want to present, to your AndroidManifest.xml too :-) That was the issue for me.

提交回复
热议问题