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

Apache License 2.0
103 stars 163 forks source link

Android Basics: Navigation backstack #89

Closed kelvs-ricafort closed 1 year ago

kelvs-ricafort commented 1 year 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#5

In which task and step of the codelab can this issue be found? kotlin.UninitializedPropertyAccessException: lateinit property navController has not been initialized Step 3: Implement the Up button behavior

Describe the problem going back to the previous activity gives out the error

Steps to reproduce?

  1. Run the app
  2. Click on any button
  3. Click on the back button
  4. It goes to crash

Versions Android Studio version: Android Studio Electric Eel | 2022.1.1 API version of the emulator: 33

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

image

kelvs-ricafort commented 1 year ago

Issue is solved... I managed to fixed it