Review Android UI Toolkit Pro
At the time of this video course, the Android Studio version that was being used was the Canary version (Arctic Fox). Since then, there were new versions of Android Studio, Kotlin and Compose launched that in this case affected the project compilation.
Opening the project with Android Studio Arctic Fox Patch 3, immediately shows you a warning saying:
This project is using version 7.0.0-alpha14 of the Android Gradle plugin, which is incompatible with this version of Android Studio
If you click on upgrade, Android Studio will automatically change the version of gradle-wrapper.properties distributionUrl
from gradle-7.0-rc-1-bin.zip to
gradle-7.0.2-bin.zip and the Android Gradle version in the build.gradle file inside the root folder (project level) from
Please confirm that you have these new versions:
build.gradle (at the project level)
After that’s done, you’ll need to update a few more libraries.
Still in the build.gradle file update:
The Kotlin version that’s going to be used:
kotlin_version = '1.4.32'
The Hilt Gradle plugin:
The Compose version inside project.ext:
compose = "1.0.0-beta07"
You can now synchronize the project.
Once done, click on compile and run the app. :]
Android Studio Canary 4.2 8 or newer required to use the project. Knowledge of Android, the UI toolkit, Kotlin and basic code structure required to follow the concepts and code.
Check out the Room Database: Getting Started if you want to explore the Librarian application project and how its built internally.
Take a tour of different ways of developing UI in Android over its history. Compare imperative and declarative UI development, and their pros and cons.