Fixed
Status Update
Comments
yb...@google.com <yb...@google.com> #2
For Kotlin 2.0 and KSP 2.0 the Cannot change attributes of configuration ':composeApp:debugFrameworkIosX64' after it has been locked for mutation
really seems like a KSP issue. You should file a bug in their repository with a sample app if possible.
If you downgrade to Kotlin 1.9 then things 'should' work, there are example apps out there with such configuration, like the following one:
ap...@google.com <ap...@google.com> #3
Yes this does seem like a KSP issue however it only starts happening when room is added to the project. As the template project compiles just fine.
Will try to use the example provided by you to check if it fixes the issue.
Will try to use the example provided by you to check if it fixes the issue.
Description
The output generated by the Room processor for this input won't compile, because the generated Java tries to "new" the object expression type:
```kt
@Database(entities = [FooEntity::class], version = 1, exportSchema = false)
internal abstract class FooDatabase : RoomDatabase() {
abstract fun fooDao(): FooDao
}
@Entity(tableName = "foo")
@TypeConverters(FooTypeConverters::class)
data class FooEntity internal constructor(
@PrimaryKey val id: Int,
val proto: SomeProto
)
object FooTypeConverters {
@TypeConverter
fun toSomeProto(bytes: ByteArray): SomeProto {
return SomeProto.parseFrom(bytes)
}
@TypeConverter
fun toBytes(someProto: SomeProto): ByteArray {
return someProto.toByteArray()
}
}
```