Conforme acompanhando a aula de android room, utilizei na dependencias e realizei build que deu erro mostrado abaixo
dependencies {
def room_version = "2.4.1"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.8.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}
ScriptCompilationException(errors=[ScriptCompilationError(message=Expecting an element, location=C:\Users\arthur cambraia\.gradle\.tmp\gradle-kotlin-dsl-12449924912236025375.tmp\build.gradle.kts (32:22)), ScriptCompilationError(message=Unexpected tokens (use ';' to separate expressions on the same line), location=C:\Users\arthur cambraia\.gradle\.tmp\gradle-kotlin-dsl-12449924912236025375.tmp\build.gradle.kts (32:24)), ScriptCompilationError(message=Unexpected tokens (use ';' to separate expressions on the same line), location=C:\Users\arthur cambraia\.gradle\.tmp\gradle-kotlin-dsl-12449924912236025375.tmp\build.gradle.kts (33:20)), ScriptCompilationError(message=Unexpected tokens (use ';' to separate expressions on the same line), location=C:\Users\arthur cambraia\.gradle\.tmp\gradle-kotlin-dsl-12449924912236025375.tmp\build.gradle.kts (34:25)), ScriptCompilationError(message=Unresolved reference: def, location=C:\Users\arthur cambraia\.gradle\.tmp\gradle-kotlin-dsl-12449924912236025375.tmp\build.gradle.kts (32:5)), ScriptCompilationError(message=Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val NamedDomainObjectContainer
tem alguma ideia que possa resolver este erro?