Error in app/build.gradle.kts

Can some one tell me what I doing wrong I have this in app/build gradle.kts and I don’t now where it’s going wrong

// Room dependencies met KSP voor de compiler
    implementation("androidx.room:room-runtime:2.7.1")
    implementation("androidx.room:room-ktx:2.7.1")
    ksp("androidx.room:room-compiler:2.7.1")

    // Hilt dependencies (met kapt)
    implementation("com.google.dagger:hilt-android:2.50")
    kapt("com.google.dagger:hilt-compiler:2.50")

You forgot to share your error, optimally through a build --scan URL.

sorry
Unresolved reference: kapt

You must probably don’t have the kapt plugin applied, so there is no such configuration: kapt compiler plugin | Kotlin Documentation