google-developer-training / android-basics-kotlin-cupcake-app

Apache License 2.0
103 stars 163 forks source link

Android Basics: Navigation backstack #74

Closed kelvinator300 closed 10 months ago

kelvinator300 commented 2 years ago

URL of codelab

https://developer.android.com/codelabs/basic-android-kotlin-training-navigation-backstack?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-3-pathway-4%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-navigation-backstack#0

In which task and step of the codelab can this issue be found? Implement Up button behavior

Describe the problem

lateinit property navController has not been initialized

android studio problem

Steps to reproduce?

  1. Go to Run button on Cupcake App
  2. Click on Up Button
  3. See error -> lateinit property navController has not been initialized

Versions _Android Studio version: 2021.3.1 Dolphin _API version of the emulator: API 31

Additional information Include screenshots if they would be useful in clarifying the problem.