https://kotlinlang.org
Join Slack
Hi I am new to kmm. I started with AppCode and created a new kmm project. When I want to build the a...
r

Roger Kreienbühl

almost 4 years ago
Hi I am new to kmm. I started with AppCode and created a new kmm project. When I want to build the app for iOS I ran into the following error:
ld: building for iOS Simulator, but linking in dylib built for iOS, file '../../../../../shared/build/bin/iosArm64/debugFramework/shared.framework/shared' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
> Task :iosApp:buildIosAppMain FAILED

The following build commands failed:
	Ld /Users/rogerkreienbuehl/Programmieren/HelloWorld/iosApp/build/bin/iosApp/Debug-iphonesimulator/HelloWorld.app/HelloWorld normal (in target 'iosApp' from project 'iosApp')
(1 failure)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':iosApp:buildIosAppMain'.
> Process 'command 'xcrun'' finished with non-zero exit value 65
I work on a MacBook Pro M1 with macOS 12.1 and xCode 13.2.1. How can I fix this linking error?
r
a
v
  • 3
  • 11
  • 395
I am getting an Exception while trying to map the JSON to an object with Jackson. ```com.fasterxml.j...
j

JP

over 5 years ago
I am getting an Exception while trying to map the JSON to an object with Jackson.
com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
 at [Source: (org.apache.catalina.connector.CoyoteInputStream); line: 1, column: 0]
	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59) ~[jackson-databind-2.11.0.jar:2.11.0]
	at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4624) ~[jackson-databind-2.11.0.jar:2.11.0]
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4469) ~[jackson-databind-2.11.0.jar:2.11.0]
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3479) ~[jackson-databind-2.11.0.jar:2.11.0]
	at LoginFilter.attemptAuthentication(LoginFilter.kt:54) ~[main/:na]
What is the problem? I will put the code snippets in thread
j
k
w
  • 3
  • 4
  • 395
Hey there, I’m encountering an issue with `AnimatedVisibility` when using it within a `Column` that ...
s

Steffen Funke

over 2 years ago
Hey there, I’m encountering an issue with
AnimatedVisibility
when using it within a
Column
that has a
verticalArrangement
+
spacing
. The animation appears to “jump” when the visibility state changes. However, when there’s no spacing, the animation is smooth. (Not asking for help, rather if a bug report should be filed or not). Code and Video in 🧵
s
f
+4
  • 6
  • 12
  • 394
I'm trying to convert a `JsonObject` to `Map<String, Any>` , but am stumped on `JsonPrimitive`...
r

Richard Gomez

about 4 years ago
I'm trying to convert a
JsonObject
to
Map<String, Any>
, but am stumped on
JsonPrimitive
. It stores all values as
String
, so it doesn't seem possible to get a float/boolean/etc. unless you know its type ahead of time. Is there a (simpler) way to accomplish this?
r
e
  • 2
  • 10
  • 394
How can I dynamically change the background color of a row object based on a computed value? For exa...
k

Ken W. Alger

over 1 year ago
How can I dynamically change the background color of a row object based on a computed value? For example:
val energy = calEnergy(arg1, arg2, arg3, arg4)

var cellColor: Color = if (energy > 50) {
    Color(R.color.warning)
} else if (energy > 20) {
    Color(R.color.acceptable)
} else if (energy > 0) {
    Color(R.color.groovy)
} else {
    Color(R.color.purple_700)
}

Column(modifier - modifier){
    Row(...){
       Box(modifier = modifier.background(color = cellColor)){...}
}
What am I missing here?
k
z
+2
  • 4
  • 16
  • 393
Anyone facing: ```e: [ksp] java.lang.NullPointerException: null cannot be cast to non-null type org....
g

Guilherme Delgado

over 1 year ago
Anyone facing:
e: [ksp] java.lang.NullPointerException: null cannot be cast to non-null type org.jetbrains.kotlin.load.java.structure.impl.JavaClassImpl

* What went wrong:
Execution failed for task 'shared:kspKotlinIosSimulatorArm64'.
> A failure occurred while executing com.google.devtools.ksp.gradle.KspAAWorkerAction
   > null cannot be cast to non-null type org.jetbrains.kotlin.load.java.structure.impl.JavaClassImpl
With
ksp.useKSP2=true
? https://github.com/google/ksp/issues/1941
g
j
+2
  • 4
  • 8
  • 393
My bottom navigation can't navigate to the start destination after opening a deep link. Any idea why...
f

Florian Walther (live streaming)

almost 4 years ago
My bottom navigation can't navigate to the start destination after opening a deep link. Any idea why?
f
f
+3
  • 5
  • 18
  • 393
I have a `BasicTextField` field which, when cleaning up the text with `backspace` and writing someth...
m

mgrazianodecastro

over 2 years ago
I have a
BasicTextField
field which, when cleaning up the text with
backspace
and writing something again, it is raising
java.lang.IllegalStateException: LayoutCoordinate operations are only valid when isAttached is true
. Does anyone know why?
m
d
+3
  • 5
  • 13
  • 393
Is there any way to join lines with arcs, creating a radius? It seems to be possible to join straigh...
j

Jonny

almost 3 years ago
Is there any way to join lines with arcs, creating a radius? It seems to be possible to join straight lines but I have two arcs that need to join two lines. I've tried to solve the problem mathematically and calculating exactly where the corner arcs should go and what start and sweep angles they should have, but that is proving to be quite difficult. The shape I'm going for is what's marked with the red dots in this image. There needs to be a radius on those corners.

https://i.imgur.com/pvzMByH.png▾

j
r
+2
  • 4
  • 134
  • 393
is swipeTorefresh deprecated in jetpack compose and i should replace it with pullrefresh??
e

Elio Maroun

almost 3 years ago
is swipeTorefresh deprecated in jetpack compose and i should replace it with pullrefresh??
👍 1
e
t
c
  • 3
  • 2
  • 393
Previous171172173Next

kotlinlang

A modern programming language that makes developers happier.

Powered by