Gradle format for 12.8/1.29 appears out of date and cant figure out replacement

Hi, have found the gradle implementaion statements from the book have been working if I use (“…”) instead of the single quotes. (the ones generated seems to use a libs() format and I’ve used that sometimes but came a cropper on Chapter 11. Anyway trying to get 12.8 to work.

have got:
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
id(“org.jetbrains.kotlin.kapt”)
}


dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
implementation(libs.androidx.activity)
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.fragment.ktx)
implementation(libs.androidx.lifecycle.viewmodel.ktx)
implementation(libs.androidx.recyclerview)
implementation(“org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0”)
implementation(“org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0”)
implementation(“androidx.lifecycle:lifecycle-runtime-ktx:2.8.6”)
implementation (“androidx.room:room-runtime:2.6.1”)
implementation (“androidx.room:room-ktx:2.6.1”)
kapt(“androidx.room:room-compiler:2.6.1”)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
}
but kapt is highlit in red as unresolved reference. Cant figure it out. somewhere suggested kapt should now be ksp but had no luck with that. The posts on this forum seem quite old, is it still active? Hope someone can help, was really looking forward to the database bit.

15/10/2024 - well I’ve stumbled on a bit. Discovered along the way that the single quote format seems to be ‘Groovy’ and implementation(“…”) is kotlin. Cant see groovy in the index so I guess maybe the latest android studio uses a different default. Anyway I upated to the latest Android Studio 2024.2.1 and allowed all the gradle warning suggestions to convert format for implementation statements to lib format (then wondered how I knew the versions that were running and see a libs.versions.toml file listed under gradle scripts seems to cover that). Have managed to update the app gradle, sync it and run the App as it was without it falling over. Not sure if I need the project level plugin statement, I think I’ll leave it for now and see if I can edge forward with some DB code.