You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
Describe the problem
This syntax to instantiate a ViewModel is deprecated according to the Android docs:
ViewModelProviders.of(this).get(GameViewModel::class.java)
Would love guidance on what I should use! I replaced with:
viewModel = ViewModelProvider(this).get(GameViewModel::class.java)
In which lesson and step of the codelab can this issue be found?
Step 5 of Android Fundamentals 05.1
How to reproduce?
na
Versions
na
Additional information
na
codelab: android-kotlin-fundamentals
The text was updated successfully, but these errors were encountered:
Describe the problem
This syntax to instantiate a ViewModel is deprecated according to the Android docs:
ViewModelProviders.of(this).get(GameViewModel::class.java)
Would love guidance on what I should use! I replaced with:
viewModel = ViewModelProvider(this).get(GameViewModel::class.java)
In which lesson and step of the codelab can this issue be found?
Step 5 of Android Fundamentals 05.1
How to reproduce?
na
Versions
na
Additional information
na
codelab: android-kotlin-fundamentals
The text was updated successfully, but these errors were encountered: