Kotlin compatibility with jvm

in my version control file libs.versions.toml for kotlin the version is defined
kotlin = “1.8.22”
in the gradle.kts configuration file the android section is defined as follows
android {
compileSdk = 35

defaultConfig {
    applicationId = "com.example.app"
    minSdk = 21
    targetSdk = 35
    versionCode = 1
    versionName = "1.0"
    namespace = "com.example.app"
}

kotlinOptions {
    jvmTarget = "1.8"
}

buildFeatures {
    buildConfig = true
}

}
dk23 installed on the computer
When I compile I get the output
A problem occurred configuring root project ‘PersonalFinance’.

Failed to notify project evaluation listener.
Could not create task ‘:compileDebugAndroidTestKotlin’.
Unknown Kotlin JVM target: 23
KotlinJvmAndroidCompilation with name ‘debugAndroidTest’ not found.
What do I need to do to get the project build?

Firstly, can you fix your formatting?

Secondly, can you paste your entire build.gradle.kts file instead of just parts of it?

Thirdly, I don’t know if this is different for Android, but in my Kotlin applications, I use this configuration in my build.gradle.kts file:

kotlin {
    jvmToolchain(21)
}