https://kotlinlang.org
Join Slack
Hello! [Resolved] I tried to use Kotlin 2.0.0-RC2 and the <compose compiler in kotlin repo> to build...
k

kevin.chiu

over 1 year ago
Hello! [Resolved] I tried to use Kotlin 2.0.0-RC2 and the compose compiler in kotlin repo to build my project, but I'm getting this error, is the compose compiler version not compatible with the latest RC yet?
e: This version (1.3.2) of the Compose Compiler requires Kotlin version 1.7.20 but you appear to be using Kotlin version 2.0.0-RC2 which is not known to be compatible.  Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
k
l
s
  • 3
  • 5
  • 630
I got a META-INF error I have never seen when mixing some coroutines libs in my android project. I c...
d

dewildte

over 2 years ago
I got a META-INF error I have never seen when mixing some coroutines libs in my android project. I could really use some eyes on this one as I have tried everything. Heck, I hate ChatGPT and I even asked it for help. SO is empty too. Error in the 🧵
✅ 1
d
t
+2
  • 4
  • 11
  • 630
I'm using Jetpack Compose navigation in an app with multiple activities, each with their own separat...
j

Justin Tarnoff

almost 3 years ago
I'm using Jetpack Compose navigation in an app with multiple activities, each with their own separate nav graph (multiple activities is a requirement). My workflow is to navigate from Activity 0 -> Activity 1 -> Activity2 then navigate back to Activity 0 and clear the back stack. I can't find a way to clear the back stack when navigating back to Activity 0. Since I'm using NavGraphBuilder, I don't have direct access to the Intent used to launch the activity. Through
ActivityNavigatorDestinationBuilder
, I'm able to access the action, data, and dataPattern used to create the intent, but I don't see a way to let me set flags like
FLAG_ACTIVITY_NEW_TASK
or
FLAG_ACTIVITY_CLEAR_TOP
. How can I navigate back to Activity 0 and clear the back stack?
j
i
  • 2
  • 7
  • 630
I am currently getting a "java.lang.IllegalStateException: Launcher has not been initialized". What ...
a

André Thiele

over 4 years ago
I am currently getting a "java.lang.IllegalStateException: Launcher has not been initialized". What am I doing wrong?
a
i
a
  • 3
  • 10
  • 630
Does anybody have a working solution for disabling to copy and cut text from a password text field? ...
s

Sebastian Kürten

over 2 years ago
Does anybody have a working solution for disabling to copy and cut text from a password text field? I found some questions on SO with hacky workarounds, but I think might be working on Android only and not on desktop https://stackoverflow.com/questions/70518908/how-to-disable-copy-paste-cut-in-a-textfield-jetpack-compose
s
e
o
  • 3
  • 6
  • 629
Is there a way to get the serialized name out of an enum value without using reflection? For now I’v...
j

jean

over 3 years ago
Is there a way to get the serialized name out of an enum value without using reflection? For now I’ve been doing this but I honestly don’t know if that’s a good thing to do
enum class DeviceAttributeType {
    ...
    @SerializedName("waterOverflowIndication")
    WATER_OVERFLOW_INDICATION,

    @SerializedName("windowCoverLiftPercentage")
    WINDOW_COVER_LIFT_PERCENTAGE;
    ...
    override fun toString() = DeviceAttributeType::class.java
        .getField(name)
        .getAnnotation(SerializedName::class.java)
        ?.value ?: super.toString()
}
j
i
e
  • 3
  • 5
  • 629
Is there a way to define a base URL in HttpClient ? By "base URL" I mean that all requests are based...
t

tseisel

about 6 years ago
Is there a way to define a base URL in HttpClient ? By "base URL" I mean that all requests are based on it, for example : with
baseUrl
= "https://foo.host.com/api/v1" when calling
httpClient.get("endpoint")
, then the resolved URL is
<https://foo.host.com/api/v1/endpoint>
.
t
e
r
  • 3
  • 5
  • 629
Anyone using Decompose + Compose Multiplatform + Koin combination? If so is there any way to inject ...
m

Marko Novina

almost 3 years ago
Anyone using Decompose + Compose Multiplatform + Koin combination? If so is there any way to inject decompose components directly into compose functions with Koin? I know there is a example of someting similar Arkadii did for Droidcon app, but there he passes components into compose functions. What I want is basically the same thing, but injecting components into functions instead of passing them. If I’m not mistaken Koin doesn’t support that for multiplatform compose, but did somebody tried to do something like that or has some workaround to do so? 🙏
m
a
  • 2
  • 4
  • 627
What does Fir stand for in Kotlin compiler?
i

Imran/Malic

about 6 years ago
What does Fir stand for in Kotlin compiler?
i
k
+4
  • 6
  • 22
  • 627
Does the `@Transactional` annotation work with coroutines? We were having an issue with this some ti...
a

Arivnd Ramesh

almost 2 years ago
Does the
@Transactional
annotation work with coroutines? We were having an issue with this some time back, and I thought I saw this was addressed in a recent Spring release, but for the life of me I can't find it anymore.
a
r
k
  • 3
  • 3
  • 626
Previous959697Next

kotlinlang

A modern programming language that makes developers happier.

Powered by