android/codelab-android-room-with-a-view

Page 4, buildscript kotlin version is 1.5.31, so should kotlin version in plugins be 1.5.31

raducornea opened this issue · 0 comments

The build.gradle (project) must have a lower version of Kotlin in plugins in order for it to work with the asynchronous methods.
It should be clarified that somewhere in the page 4, that the version of Kotlin must be the same in both places.

buildscript {
    ext.kotlin_version = '1.5.31'
}

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    id 'com.android.application' version '7.3.0' apply false
    id 'com.android.library' version '7.3.0' apply false
    id 'org.jetbrains.kotlin.android' version '1.5.31' apply false
}

ext {
    activityVersion = '1.4.0'
    appCompatVersion = '1.4.0'
    constraintLayoutVersion = '2.1.2'
    coreTestingVersion = '2.1.0'
    coroutines = '1.5.2'
    lifecycleVersion = '2.4.0'
    materialVersion = '1.4.0'
    roomVersion = '2.3.0'
    // testing
    junitVersion = '4.13.2'
    espressoVersion = '3.4.0'
    androidxJunitVersion = '1.1.3'
}