In which task and step of the codelab can this issue be found?
Download the starter data set
Describe the problem
I downloaded the code as described the codelab from here: made sure it was the correct branch (compose)
Tried to run the app, but the "make" step fails.
Steps to reproduce?
Download the code as described
Android Studio notifies that AGP Upgrade is available:
Performed AGP upgrade "Android Gradle plugin version 7.3.1 has an upgrade available. Start the AGP Upgrade Assistant to update this project's AGP version."
Updates available
To take advantage of the latest features, improvements and fixes, we recommend that you upgrade this project's Android Gradle Plugin from 7.3.1 to 7.4.2.
Perform the Upgrade successfully:
Sync succeeded
The upgraded project successfully synced with the IDE. You should test that the upgraded project builds and passes its tests successfully before making further changes.
The upgrade consisted of the following steps:
Upgrade AGP dependency from 7.3.1 to 7.4.2
Upgrade Gradle version to 7.5
Upgrade Gradle plugins
Make module app
See error in build output:
Task :app:kaptDebugKotlin
C:\Dev\Mobile\Android\SQL_Basics\app\build\tmp\kapt3\stubs\debug\com\example\sqldemo\AppDatabase.java:7: warning: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide room.schemaLocation annotation processor argument OR set exportSchema to false.
public abstract class AppDatabase extends androidx.room.RoomDatabase {
^
Task :app:compileDebugKotlin FAILED
e: This version (1.1.1) of the Compose Compiler requires Kotlin version 1.6.10 but you appear to be using Kotlin version 1.6.21 which is not known to be compatible. Please fix your configuration (or suppressKotlinVersionCompatibilityCheck but don't say I didn't warn you!).
FAILURE: Build failed with an exception.
VersionsAndroid Studio version: Jellyfish 2023.1.1
API version of the emulator: 31 (never reached the part where the app is launched on the device)
Additional information
Full build output:
Executing tasks: [:app:assembleDebug, :app:assembleDebugUnitTest, :app:assembleDebugAndroidTest] in project C:\Dev\Mobile\Android\SQL_Basics
Task :app:kaptDebugKotlin
C:\Dev\Mobile\Android\SQL_Basics\app\build\tmp\kapt3\stubs\debug\com\example\sqldemo\AppDatabase.java:7: warning: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide room.schemaLocation annotation processor argument OR set exportSchema to false.
public abstract class AppDatabase extends androidx.room.RoomDatabase {
^
Task :app:compileDebugKotlin FAILED
e: This version (1.1.1) of the Compose Compiler requires Kotlin version 1.6.10 but you appear to be using Kotlin version 1.6.21 which is not known to be compatible. Please fix your configuration (or suppressKotlinVersionCompatibilityCheck but don't say I didn't warn you!).
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-sql?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-sql#2
In which task and step of the codelab can this issue be found?
Describe the problem I downloaded the code as described the codelab from here: made sure it was the correct branch (compose) Tried to run the app, but the "make" step fails.
Steps to reproduce?
Versions Android Studio version: Jellyfish 2023.1.1 API version of the emulator: 31 (never reached the part where the app is launched on the device)
Additional information Full build output: