https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
t

Tony Lin

02/16/2023, 7:27 PM
Hi all, I am trying KMM + Sqldelight following the tutorial here. However, after building the project, there are three AppDatabases and I got the
Redeclaration: AppDatabase
error Is there any other sqldelight settings I need to add? I am using
sqldelight 1.5.4
and here is the sqldelight script in shared build.gradle.kts:
Copy code
sqldelight {
    database("AppDatabase") {
        packageName = "com.example.app.shared.cache"
    }
}
m

mbonnin

02/16/2023, 7:28 PM
Use 1.5.5
t

Tony Lin

02/16/2023, 7:28 PM
OK, let me try it
m

mbonnin

02/16/2023, 7:29 PM
1.5.4 had a compatibility issue with Kotlin 1.8
t

Tony Lin

02/16/2023, 7:31 PM
@mbonnin you are the god. It works now!! Thanks!
m

mbonnin

02/16/2023, 7:31 PM
🎉
308 Views