Daniel
suspend fun doLogout(token: String) { val userId = appService.currentUser?.id realm.write { var user = query<UserInfo>("_id = $0", userId).first().find() if (user != null) { val productIndex = user.FCMToken.withIndex().findLast { it.value == token }!!.index user = findLatest(user)!!.also { it.FCMToken.removeAt(productIndex) } copyToRealm(user) appService.currentUser?.logOut() // Suspension functions can be called only within coroutine body } } }
ritesh
HtmlCompat.fromHtml()
MBegemot
eygraber
kotlin.daemon.useFallbackStrategy=false
Unable to clear jar cache after compilation, maybe daemon is already down: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused
Marcin Wisniowski
TheDukerChip
UnknownPluginException
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.google.devtools.ksp', version: '1.7.10-1.0.6'] was not found in any of the following sources: - Gradle Core Plugins (plugin is not in 'org.gradle' namespace) - Plugin Repositories (could not resolve plugin artifact 'com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.7.10-1.0.6')
app/build.gradle
plugins { id("com.android.application") id("kotlin-android") id 'com.google.devtools.ksp' version("1.7.10-1.0.6") } dependencies { """ def room_version = "2.4.3" implementation "androidx.room:room-runtime:$room_version" ksp "androidx.room:room-compiler:$room_version" }
Vladimir Malykhin
dave08
Okan Yıldırım
@Query("select id, email from User") fun getAllIdsAndEmails(): List<Pair<Long, String>>
No converter found capable of converting from type [org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap] to type [kotlin.Pair<?, ?>]
robfletcher
java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.kotlin.com.intellij.pom.java.LanguageLevel
buildSrc
A modern programming language that makes developers happier.