We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codelab - Practice: Add a ViewModel to Dessert Clicker
Codelab step 3 - Set up dependencies
It says to add this fragment to build.gradle:
buildscript { ext { ... lifecycle_version = '2.5.1' } }
Which isn't working for kotlin DSL. I had to add this instead:
buildscript { val lifecycle_version by extra("2.5.1") }
The second snippet doesn't work either, I used this:
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:${rootProject.extra["lifecycle_version"]}")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Codelab - Practice: Add a ViewModel to Dessert Clicker
Codelab step 3 - Set up dependencies
It says to add this fragment to build.gradle:
Which isn't working for kotlin DSL. I had to add this instead:
The second snippet doesn't work either, I used this:
The text was updated successfully, but these errors were encountered: