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

Apache License 2.0
89 stars 256 forks source link

Android Basics: ViewModel #220

Closed mishraspecific closed 8 months ago

mishraspecific commented 1 year ago

URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-training-viewmodel#6

In which task and step of the codelab can this issue be found? In slide 7([7. Populate ViewModel]) of step 8 Describe the problem in the getNextWord() function, the currentWordCount is being incremented instead of _currentWordCount. This is causing an error because currentWordCount is a val variable. Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions Android Studio version:

Screenshot 2023-03-16 at 12 20 57 AM

API version of the emulator:

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

RobertWonchFRCC commented 1 year ago

Nobody at android cares... at all.