https://kotlinlang.org
Join Slack
What's the right way of applying a 3D transformation to an image?
p

Pierre Schrodinger

over 2 years ago
What's the right way of applying a 3D transformation to an image?
p
k
+3
  • 5
  • 17
  • 502
Did you ever wonder, how to call Rust code from Kotlin Multiplatform? I've build <Kotlin Multiplatfo...
b

benkuly

almost 3 years ago
Did you ever wonder, how to call Rust code from Kotlin Multiplatform? I've build Kotlin Multiplatform bindings for uniffi if you are interested. Currently only JVM and Native are supported as targets, but I'm working on JS support too.
b
b
d
  • 3
  • 3
  • 502
I’m getting an error when building for the iOS simulator on Mac M1 (detailed logs attached in the th...
r

Rachel Carandang

over 3 years ago
I’m getting an error when building for the iOS simulator on Mac M1 (detailed logs attached in the thread). Originally the iOS build of my shared library is complained target ios_simulator_arm64 is missing. When I added
iosSimulatorArm64()
as a target to my build.gradle.kts, then the build complains that my “expect” classes are missing for that target with:
Expected class 'SettingsStorage' has no actual declaration in module <shared> for Native.
What is the proper way to get around this error and build for the simulator?
r
l
  • 2
  • 5
  • 502
Hi everyone, I have an android project set up with ksp. When I am building the debug and release ver...
d

Dilraj Singh

over 3 years ago
Hi everyone, I have an android project set up with ksp. When I am building the debug and release version in succession, I am getting a compile-time error saying that duplicate declarations are present. The issue is that ksp is building the same code under the debug folder and in the release folder. How can I solve this? I am attaching a screenshot for reference.
d
t
+2
  • 4
  • 18
  • 502
How does one navigate screens controlled by bottom navigation and the bottom nav is in a screen in N...
t

Tanaka

about 4 years ago
How does one navigate screens controlled by bottom navigation and the bottom nav is in a screen in NavHost. The documentation it's pretty vague in this aspect. They implement a NavHost wc results in ViewModelStore should be set before setGraph call Exception
t
i
  • 2
  • 6
  • 502
`Imports must be ordered in lexicographic order without any empty lines in-between` how do I get Ktl...
h

Hexa

almost 6 years ago
Imports must be ordered in lexicographic order without any empty lines in-between
how do I get Ktlint to automatically fix this error?
h
t
  • 2
  • 1
  • 502
I want to observe recomposition using prints, but it seems they are not perfectly reliable. If I use...
m

marcinmoskala

12 months ago
I want to observe recomposition using prints, but it seems they are not perfectly reliable. If I use a print in a body, it is sometimes not called even if this function got recomposed. For instance here,
ChatTopBar
gets recomposed unnecessarily because
List
is not stable, and I can see in Layout Inspector that it gets recomposed, but this print is only executed during the initial composition phase. Do you know what might be the reason why it works this way? I can provide a complete example.
@Composable
fun ChatTopBar(messages: List<Message>) {
    println("ChatTopBar recomposition")
    TopAppBar(title = {
        println("TopAppBar title recomposition")
        Text("Messages ${messages.size}")
    })
}
✅ 1
K 1
m
s
+2
  • 4
  • 15
  • 501
all the unit test using `runTest` failing once I upgraded kotlin to `1.8.10` from `1.6.10` with erro...
a

Ankit Kumar

over 2 years ago
all the unit test using
runTest
failing once I upgraded kotlin to
1.8.10
from
1.6.10
with error
kotlinx.coroutines.test.UncaughtExceptionsBeforeTest
a
s
  • 2
  • 2
  • 501
I disable import-ordering, no-wildcard-imports because its not automatically corrected. What sort o...
d

David Corrado

almost 3 years ago
I disable import-ordering, no-wildcard-imports because its not automatically corrected. What sort of strategies do people use on a team to automatically get this to format. I know I can fix it for the specific file pretty easy but trying to have a good configuration and make it so formatting is as automatic as possible?
d
e
p
  • 3
  • 2
  • 501
Hi. New KMM project generated in Android Studio. First iosApp run fails. Any clues? ```** BUILD FA...
a

Adrian Witaszak

almost 4 years ago
Hi. New KMM project generated in Android Studio. First iosApp run fails. Any clues?
** BUILD FAILED **


The following build commands failed:	

PhaseScriptExecution Run\ Script /Users/adrianwitaszak/Projects/KMP/MyApplication/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Script-7555FFB5242A651A00829871.sh (in target 'iosApp' from project 'iosApp')

> Task :shared:linkDebugFrameworkIosX64 FAILED
e: Compilation failed: Could not initialize class llvm.llvm

 * Source files: 
 * Compiler version info: Konan: 1.6.10 / Kotlin: 1.6.10
 * Output kind: FRAMEWORK

e: java.lang.NoClassDefFoundError: Could not initialize class llvm.llvm
a
b
+3
  • 5
  • 38
  • 501
Previous129130131Next

kotlinlang

A modern programming language that makes developers happier.

Powered by