-
I use the following code to fetch the UserData from a firebase collection. It works fine for JVM-Desktop (i did not come around to integrate it on Android), despite AndroidStudio is giving the error below. It's unhappy about class UserDataService(
private val firestore: FirebaseFirestore,
) : IUserDataService {
override suspend fun getUserData(userId: String): Flow<UserData> = queryPath(userId).snapshots.map { it.data<UserData>() }
private fun queryPath(userId: String) = firestore.collection(USER_DATA_COLLECTION).document(userId)
} Cannot inline bytecode built with JVM target 17 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option Any feedback appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
nbransby
Jan 23, 2024
Replies: 1 comment 1 reply
-
Not sure, is it this? https://youtrack.jetbrains.com/issue/KTIJ-25134 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AlbRoehm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure, is it this? https://youtrack.jetbrains.com/issue/KTIJ-25134