https://kotlinlang.org
Join Slack
Hi there, how can I pass a cookie at Ktor client headers? I am trying the below code ```header("Cook...
p

ptsiogas

almost 4 years ago
Hi there, how can I pass a cookie at Ktor client headers? I am trying the below code
header("Cookie", cookie)
but Ktor seems to ignore it.
p
a
h
  • 3
  • 17
  • 1006
I can’t pass a drawable id (R.drawable.image) as an INT for my painterResource(). When running in re...
a

Aaron Waller

over 2 years ago
I can’t pass a drawable id (R.drawable.image) as an INT for my painterResource(). When running in release mode I get the following crash:
java.lang.IllegalArgumentException: Only VectorDrawables and rasterized asset types are supported ex. PNG, JPG
the image I pass as an INT is a PNG.
a
a
+2
  • 4
  • 7
  • 1005
is it possible to convert a Kotlin `ByteArray` to Swift `Data` without copying every byte?
d

David Stolarsky

about 6 years ago
is it possible to convert a Kotlin
ByteArray
to Swift
Data
without copying every byte?
d
j
  • 2
  • 4
  • 1005
Does exist something similar to "Toast" for displaying simple notifications or bubbles to the user i...
p

Pablo

over 2 years ago
Does exist something similar to "Toast" for displaying simple notifications or bubbles to the user in Compose Desktop?
p
h
t
  • 3
  • 6
  • 1004
Hi Kotliners! I wrote a Kotlin Redis client using co-routines. Check this out, i welcome you to revi...
a

Abhi

over 3 years ago
Hi Kotliners! I wrote a Kotlin Redis client using co-routines. Check this out, i welcome you to review it, provide feedback, contribute to it, use it. https://github.com/crackthecodeabhi/kreds Please give Github stars, so it encourages me to contribute more to Kotlin Server side and the Kotlin Server side community! Your stars and feedback means a lot! Thanks!
👍 2
K 6
a
b
r
  • 3
  • 8
  • 1004
I need implement animation of lazy column. The every item of lazy column will fast out from the bot...
m

Mathew xu

over 2 years ago
I need implement animation of lazy column. The every item of lazy column will fast out from the bottom then slow in to the top. It will play the animation when the new item will be added in lazy column, but the existed item will keep still. I try it with animatewith state, but i failed. Does anyone know how to do it. are there some library can do it?. I searched it on GitHub, but failed to find it.
m
c
q
  • 3
  • 8
  • 1003
Hi folks, How do I run a custom gradle task that only runs after the build tasks completes in a KMM ...
k

Kwabena Berko

almost 3 years ago
Hi folks, How do I run a custom gradle task that only runs after the build tasks completes in a KMM project?
tasks.register("copySomething", Copy::class) {
   println("How Do I Run This Task After Build Completes?")
}
k
j
m
  • 3
  • 15
  • 1000
Hello! I am trying to render a SVG like that ``` Image(painter = painterResource(id = R.drawable.svg...
v

Vaios Tsitsonis

almost 3 years ago
Hello! I am trying to render a SVG like that
Image(painter = painterResource(id = R.drawable.svg_name), contentDescription = "")
and I get the following error:
java.lang.IllegalArgumentException: Unknown command for: R
Is there some sort of limitation? Is there any way to overcome this issue?
v
s
+2
  • 4
  • 12
  • 999
I use some SKIA API like `Image.makeFromEncoded()` in my compose code gets a unresolved reference as...
s

Stefan Oltmann

about 2 years ago
I use some SKIA API like
Image.makeFromEncoded()
in my compose code gets a unresolved reference as soon as I add the
iosArm64()
target. If I try to add
api("org.jetbrains.skiko:skiko:0.7.58")
to
commonMain
this results in errors like this:
ld: warning: object file (/var/folders/jw/hb2y762x2jg3y14lzck8_fqc0000gn/T/included15295158996419610357/libparticles.a(libparticles.SkParticleBinding.o)) was built for newer iOS version (11.0) than being linked (9.0)
ld: warning: object file (/var/folders/jw/hb2y762x2jg3y14lzck8_fqc0000gn/T/included15295158996419610357/libskresources.a(libskresources.SkResources.o)) was built for newer iOS version (11.0) than being linked (9.0)
ld: warning: object file (/var/folders/jw/hb2y762x2jg3y14lzck8_fqc0000gn/T/included15295158996419610357/libparticles.a(libparticles.SkParticleDrawable.o)) was built for newer iOS version (11.0) than being linked (9.0)
Is this the wrong way to add skiko? I was thinking SKIA should be already used for Compose for iOS. I'm on Apple Silicon.
✅ 1
s
o
+2
  • 4
  • 25
  • 997
I’m trying JDK 16 and I see next ```Caused by: java.lang.IllegalAccessError: class org.jetbrains.kot...
e

Eugen Martynov

almost 4 years ago
I’m trying JDK 16 and I see next
Caused by: java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x52c27981) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x52c27981
Any ideas? It is JDK 16 ARM and quite standard android project
e
e
  • 2
  • 1
  • 997
Previous373839Next

kotlinlang

A modern programming language that makes developers happier.

Powered by