https://kotlinlang.org
Join Slack
Is adding KDoc to Kotlin enum values a supported feature? IntelliJ is refusing to autoformat the KDo...
p

poohbar

over 6 years ago
Is adding KDoc to Kotlin enum values a supported feature? IntelliJ is refusing to autoformat the KDoc so I have to do it manually.
p
d
c
  • 3
  • 6
  • 434
I got a requirement to be able to retry a failed 500 network call up to 5 times (with a 5 second del...
c

Colton Idle

over 2 years ago
I got a requirement to be able to retry a failed 500 network call up to 5 times (with a 5 second delay). I know that a network interceptor will be my friend here, but is the retry count something that I should just try to persist somewhere, or is there someway to know that I'm retrying the same request without having to create some sort of singleton or something? It also seems like okhttp might retry on my behalf anyway. Is there a way to disable that so I can follow my retry specs directly?
c
y
+2
  • 4
  • 15
  • 433
I am trying to add bottom sheet destinations using the material navigation accompanist but it keeps ...
y

YASAN

about 4 years ago
I am trying to add bottom sheet destinations using the material navigation accompanist but it keeps throwing this exception:
java.lang.IllegalStateException: Could not find Navigator with name "BottomSheetNavigator". You must call NavController.addNavigator() for each navigation type.
y
i
  • 2
  • 3
  • 433
Hi everyone, I'm having this issue : ```Unresolved reference 'RemoveRedEye'. Icon( modifier = M...
e

Excellence kawej

5 months ago
Hi everyone, I'm having this issue :
Unresolved reference 'RemoveRedEye'.

Icon(
    modifier = Modifier.fillMaxSize(),
    imageVector = Icons.Filled.RemoveRedEye,
    contentDescription = "Voir le produit",
    tint = Color.White
)
While others are well-imported, like this one:
Icon(
    modifier = Modifier.fillMaxSize(),
    imageVector = Icons.Outlined.Delete,
    contentDescription = "Supprimer du panier",
    tint = Color.Red
)
e
c
e
  • 3
  • 13
  • 432
arrangement vs alignment What's the difference in their English meaning? It's so confusing..
c

chanjungskim

almost 3 years ago
arrangement vs alignment What's the difference in their English meaning? It's so confusing..
c
g
e
  • 3
  • 6
  • 432
With Ktor Server how is a binary file read from the request body?
n

napperley

over 3 years ago
With Ktor Server how is a binary file read from the request body?
n
t
a
  • 3
  • 5
  • 432
Hey all, I'm unable to get a successful build in a KMM project using `Compose Multiplatform v1.5.0-...
a

Alex Kombo

about 2 years ago
Hey all, I'm unable to get a successful build in a KMM project using
Compose Multiplatform v1.5.0-rc04
and
compose.material3.
The build fails with the following error:
> Task :shared:compileKotlinIosArm64 FAILED
e: Could not find "org.jetbrains.compose.material:material" in [/Users/.konan/klib, /Users/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.0/klib/common, /Users/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.0/klib/platform/ios_arm64]
However, using
compose.material
works just fine. Am I missing something or
compose multiplatform
does not support M3? Most of the sample projects I've come across still use M2.
a
p
+3
  • 5
  • 13
  • 431
Is there a way to define a custom order for you tests with `kotlin.test` ? I am testing a multiplatf...
o

Otis Goodman

almost 3 years ago
Is there a way to define a custom order for you tests with
kotlin.test
? I am testing a multiplatform web api wrapper and I want my code to create an object first assert there is no errors then delete it while asserting no errors. Is there some sort of trick to order test functions?
o
s
  • 2
  • 3
  • 431
Hey i am trying to add space between two words and append in a string builder. Showing in text view ...
v

Vivek Modi

over 4 years ago
Hey i am trying to add space between two words and append in a string builder. Showing in text view its not working and if check in logs it's showing perfectly. Does any one how to fix this?
val list = mutableListOf(
        "1. Log in Google account\n",
        "2. Scroll to the page\n",
        "3. Tap disconnect from account to logout"
    )
    val content = StringBuilder()
    list.forEach{ string->
        content.append(string.replaceFirst(" " , "\t"))
    }
    System.out.print("string >> $content")
    list_string.text = content
As you see it fine in logs
v
  • 1
  • 1
  • 431
Is anyone else seeing a large number of 409 conflict when publishing to GitHubPackages maven repo ri...
l

Landry Norris

over 2 years ago
Is anyone else seeing a large number of 409 conflict when publishing to GitHubPackages maven repo right now? Just had 5 publish attempts fail in a row (added a counter to the end of the version to avoid true duplicates). I typically see false duplicates ~1/1000 artifacts published, but today, it’s been closer to 1/3.
l
h
+3
  • 5
  • 30
  • 430
Previous155156157Next

kotlinlang

A modern programming language that makes developers happier.

Powered by