Skip to content

Commit 9a8167b

Browse files
fix(deps): force kotlin-metadata-jvm 2.4.0 for Room annotation processor
Room 2.8.4 transitively depends on kotlin-metadata-jvm 2.2.0 which only supports Kotlin metadata up to version 2.3.0. After the Kotlin upgrade to 2.4.0, the Room annotation processor fails to read compiled class metadata. Explicitly declaring kotlin-metadata-jvm matching the Kotlin version forces Gradle to resolve the newer compatible version on the annotation processor classpath. AI-assistant: Claude Code 2.1.80 (Claude Sonnet 4.6) Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent d129b42 commit 9a8167b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎app/build.gradle‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ dependencies {
161161
// Database
162162
implementation "androidx.room:room-runtime:${roomVersion}"
163163
annotationProcessor "androidx.room:room-compiler:${roomVersion}"
164+
annotationProcessor "org.jetbrains.kotlin:kotlin-metadata-jvm:$kotlinVersion"
164165

165166
// Retrofit
166167
implementation 'com.squareup.retrofit2:retrofit:3.0.0'

0 commit comments

Comments
 (0)