https://kotlinlang.org
Join Slack
Hello all. I was wondering if anyone knows about this error: `java.net.ConnectException: Failed to c...
m

Malachi Holden

over 2 years ago
Hello all. I was wondering if anyone knows about this error:
java.net.ConnectException: Failed to connect to localhost/127.0.0.1:8080
I have a ktor server and an android app running on the same multiplatform project. Google doesn't say anything about the error except for this https://stackoverflow.com/questions/62500669/ktor-android-local-http-server-throws-error. I tried the solution and got nothing
m
a
m
  • 3
  • 5
  • 743
Do ClickableText composables support Modifier.testTag()? Below I have an example of what I want to d...
c

Cedric Lindigkeit

over 2 years ago
Do ClickableText composables support Modifier.testTag()? Below I have an example of what I want to do and beneath that the error message I am getting. Sample:
ClickableText(
            text = "Awesome text",
            modifier = Modifier.testTag("SOME_TEST_TAG"),
            onClick = { ... }
        )
ErrorMessage:
Failed to assert the following: (OnClick is defined)
Reason: Expected exactly '1' node but could not find any node that satisfies: (TestTag = 'SOME_TEST_TAG')
However, the unmerged tree contains '1' node that matches. Are you missing `useUnmergedNode = true` in your finder?
c
c
z
  • 3
  • 6
  • 742
How to display the ModalBottomSheetLayout in such a way it will hide the BottomBar. <https://stac...
s

Satyam G

about 3 years ago
How to display the ModalBottomSheetLayout in such a way it will hide the BottomBar. https://stackoverflow.com/questions/72038434/modalbottomsheet-is-showing-above-bottombar-in-jetpack-compose?noredirect=1#comment127289219_72038434
s
f
+2
  • 4
  • 10
  • 742
Been playing around after seeing iOS's TipKit. Android meet TipKit
b

brandonmcansh

about 2 years ago
Been playing around after seeing iOS's TipKit. Android meet TipKit
Screen Recording 2023-06-24 at 9.42.27 PM.mov
K 2
b
  • 1
  • 7
  • 740
Anyone having issues declaring `coreLibraryDesugaring` inside `androidMain` dependencies? It seems t...
l

leandro

over 4 years ago
Anyone having issues declaring
coreLibraryDesugaring
inside
androidMain
dependencies? It seems that this function does not exist for the
multiplatform
plugin
l
j
p
  • 3
  • 11
  • 740
Is there a way to package an application into an EXE that isn't an installer? I want to share someth...
b

Ben Woodworth

over 3 years ago
Is there a way to package an application into an EXE that isn't an installer? I want to share something with friends that they can just run without them having to worry about things being installed on their system. I saw mention of installer and app-image exes in this channel, but idk if that's what I'm looking for or where to read up on it
b
m
+3
  • 5
  • 38
  • 740
I want to execute the coroutines in the for loop in parallel and when all complete I want `print(5)`...
h

Hadi Tok

almost 7 years ago
I want to execute the coroutines in the for loop in parallel and when all complete I want
print(5)
to run. how should I go for doing this? the current code I sent runs the coroutines in loop parallel but
print(5)
does not wait for completion of the others.
-.kt
h
d
+3
  • 5
  • 16
  • 737
How can I make interface functions to suspend function? for example, ```interface BaseClass{ f...
c

chanjungskim

over 2 years ago
How can I make interface functions to suspend function? for example,
interface BaseClass{
    fun foo()
    fun bar()
}
class ChildClass: BaseClass {
    override fun foo()
    override fun bar()
}
My expectation is,
class ChildClass: BaseClass {
    override suspend fun foo()
    override suspend fun bar()
}
Is that possible?
c
h
+5
  • 7
  • 16
  • 735
Whats the preferred method of adding a CoroutineScope to a Viewmodel in Desktop code? In Android we ...
a

Arjan van Wieringen

over 2 years ago
Whats the preferred method of adding a CoroutineScope to a Viewmodel in Desktop code? In Android we have the lifecycle aware ones. I want to instantiate the ViewModel via Koin or KodeinDI in the Composable. But how do I pass a Composable scoped CoroutineScope which will get cancelled when the Composable is removed?
a
h
+3
  • 5
  • 15
  • 735
is there a kotlin native way to have a `SortedMap`? E.g., when I'm deserializing a `json` map where ...
r

Rohde Fischer

over 2 years ago
is there a kotlin native way to have a
SortedMap
? E.g., when I'm deserializing a
json
map where the order is important 🙂 It seems that
Map
happens to be sorted, but I assume it's the same as for Java - there is no guarantee it will stay that way, am I correct in that assumption? If so what can/should I do?
r
e
m
  • 3
  • 12
  • 734
Previous656667Next

kotlinlang

A modern programming language that makes developers happier.

Powered by