-
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.
Replies: 2 comments 1 reply
-
Not sure, is it this? https://youtrack.jetbrains.com/issue/KTIJ-25134 |
Beta Was this translation helpful? Give feedback.
-
Ran into the same problem; in my case was able to solve as indicated in issue #736 |
Beta Was this translation helpful? Give feedback.
Not sure, is it this? https://youtrack.jetbrains.com/issue/KTIJ-25134