google-developer-training / android-fundamentals-apps-v2

Other
649 stars 2.63k forks source link

Android Kotlin Fundamentals codelab: #282

Closed jcashmere closed 1 year ago

jcashmere commented 3 years ago

Description of problem I am getting the error 'Unresolved Reference: nightMode'

In which lesson and step of the codelab can this issue be found?

  1. Task 4: Themes and final touches - 4.2 Add Theme button to menu

How to reproduce? I have added the code from the page to my app and tried to run the app and get the error.

Versions

  1. What version of Android Studio are you using? 4.2.1
  2. What API level are you targeting? API 29/30

Additional information I am doing an assignment and have created a To Do List App and wanted to add the option to toggle between night and day mode. I am hopeful I have just entered the code wrong somewhere and it will be a quick fix.

Code with errors specified 1 Code with errors specified 2 main menu error strings xml values themes xml

codelab: android-fundamentals