Closed Lucian2001 closed 1 year ago
One solution is to add dependency to dev.gitlive:firebase-common:1.8.1
in your commonMain
, so that the SpecialValueSerializer
can be resolved.
Hope that helps.
I believe this has been fixed in 1.9.0 - please reopen if something is missing
I have a multiplatform project and i am using firestore.
I have this error after i installed version 1.8.1 and i want to use Timestamp.
Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class dev.gitlive.firebase.firestore.TimestampSerializer, unresolved supertypes: dev.gitlive.firebase.SpecialValueSerializer.
this is my build.gradle from the shared project
`plugins { kotlin("multiplatform") kotlin("native.cocoapods") id("com.android.library") kotlin("plugin.serialization") id("com.rickclephas.kmp.nativecoroutines") }
kotlin.sourceSets.all { languageSettings.optIn("kotlin.experimental.ExperimentalObjCName") }
kotlin { android { compilations.all { kotlinOptions { jvmTarget = "1.8" } } } iosX64() iosArm64() iosSimulatorArm64()
}
android { namespace = "" compileSdk = 33 defaultConfig { minSdk = 28 targetSdk = 33 } }
`
How can i solve this problem?