Leave a rating/review
Notes: 01. Review Android UI Toolkit
Note:
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 7.0.0-alpha14
to 7.0.3
Please confirm that you have these new versions:
gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
build.gradle (at the project level)
classpath 'com.android.tools.build:gradle:7.0.3'
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:
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.36'
-
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.