Hi everyone. I’m trying to add room to multi platf...
# ksp
u
Hi everyone. I’m trying to add room to multi platform project. project settings kotlin 2, ksp 2. But it throws next error:
Copy code
[ksp] loaded provider(s): [androidx.room.RoomKspProcessor$Provider]
[ksp] [MissingType]: Element 'com.usmonie.word.features.dictionary.data.db.room.models.WordSearchHistoryDb' references a type that is not present
Execution failed for task ':shared:feature:dictionary:data:kspDebugKotlinAndroid'.
A failure occurred while executing com.google.devtools.ksp.gradle.KspAAWorkerAction
   > KSP failed with exit code: PROCESSING_ERROR
Try:
>
Copy code
Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Copy code
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 7s
513 actionable tasks: 6 executed, 507 up-to-date
Watched directory hierarchies: [/Users/usmanakhmedov/StudioProjects/Word-3]
Configuration cache entry stored.
Where `WordSearchHistoryDb`:
Copy code
@Entity(tableName = "search_history_table")
internal data class SearchHistoryDb(
    @PrimaryKey
    val word: String
) {
    var date: Long = Clock.System.now().epochSeconds
}

internal data class WordSearchHistoryDb(
    @Embedded
    val search: SearchHistoryDb,

@Relation(parentColumn = "word", entityColumn = "word")
    val words: List<WordDb>
)
What have I do to fix that?