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?
Go to...
Click on...
See error...
VersionsAndroid Studio version:
API version of the emulator:
Additional informationInclude screenshots if they would be useful in clarifying the problem.
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?
Versions Android Studio version:
API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.