You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
In a specific case, method names are being converted incorrectly. This issue has been observed in Room library. The problem was resolved in another way, but I think this error needs further investigation.
Using '-' in naming is incorrect:
original function name: updateDuration
converted function name: updateDuration-BRgCzHI
Error Message (Room 2.7.0-alpha13):
[ksp] java.lang.IllegalArgumentException: not a valid name: updateDuration-BRgCzHI
at com.squareup.javapoet.Util.checkArgument(Util.java:53)
at com.squareup.javapoet.MethodSpec$Builder.setName(MethodSpec.java:315)
at com.squareup.javapoet.MethodSpec$Builder.<init>(MethodSpec.java:310)
...
Error Message (Room 2.6.1):
[ksp] java.lang.IllegalArgumentException: List has more than one element.
at kotlin.collections.CollectionsKt___CollectionsKt.single(_Collections.kt:618)
at androidx.room.ext.Xelement_extKt.getValueClassUnderlyingProperty(xelement_ext.kt:35)
at androidx.room.solver.TypeAdapterStore.createDefaultTypeAdapter(TypeAdapterStore.kt:383)
at androidx.room.solver.TypeAdapterStore.findColumnTypeAdapter(TypeAdapterStore.kt:368)
at androidx.room.processor.FieldProcessor.process(FieldProcessor.kt:63)
at androidx.room.processor.PojoProcessor.doProcess(PojoProcessor.kt:173)
...
Environment:
Android Studio Version: 2.24.2.2
Kotlin Version: 2.1.10
Room Version: 2.7.0-alpha13
Gradle Version: 8.12
KSP Version: 2.1.10-1.0.29
The text was updated successfully, but these errors were encountered:
yusefpasha
changed the title
KSP Error, Room for android
Using hyphens in naming is incorrect
Feb 4, 2025
Description:
In a specific case, method names are being converted incorrectly. This issue has been observed in Room library. The problem was resolved in another way, but I think this error needs further investigation.
Using '-' in naming is incorrect:
Error Message (Room 2.7.0-alpha13):
Error Message (Room 2.6.1):
Environment:
The text was updated successfully, but these errors were encountered: