https://kotlinlang.org
Join Slack
I'm getting when applying the Kotlin Multiplatform plugin as well as the Android library plugin… ```...
c

CLOVIS

over 2 years ago
I'm getting when applying the Kotlin Multiplatform plugin as well as the Android library plugin…
Could not create an instance of type org.jetbrains.kotlin.gradle.plugin.mpp.KotlinAndroidTarget.
> Could not generate a decorated class for type KotlinAndroidTarget.
   > com/android/build/gradle/api/BaseVariant
The error message doesn't help me at all, where should I look for to fix this?
c
m
  • 2
  • 19
  • 1148
is it possible to have a button that is pinned to the bottom of the screen (either via box alignment...
a

abbic

almost 3 years ago
is it possible to have a button that is pinned to the bottom of the screen (either via box alignment or Column arrangement) when the content is not scrollable, but switch to scrolling along witht he rest of the content when there is enough content to scroll?
a
c
s
  • 3
  • 7
  • 1148
I can’t pass a drawable id (R.drawable.image) as an INT for my painterResource(). When running in re...
a

Aaron Waller

about 3 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
  • 1148
> 'capitalize(): String' is deprecated. Use replaceFirstChar instead what is the thinking here? `...
j

Jonathan Ellis

over 3 years ago
'capitalize(): String' is deprecated. Use replaceFirstChar instead
what is the thinking here?
replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }
is a lot clunkier
😕 1
j
m
+3
  • 5
  • 18
  • 1147
What is the whole Remote Compose about? <https://github.com/androidx/androidx/tree/androidx-main/com...
j

Jan Skrasek

3 months ago
What is the whole Remote Compose about? https://github.com/androidx/androidx/tree/androidx-main/compose/remote
➕ 3
j
r
+7
  • 9
  • 36
  • 1146
Is there a way to draw outside of a composables bounds? Or to render a nested composable on top of (...
a

Alex

over 3 years ago
Is there a way to draw outside of a composables bounds? Or to render a nested composable on top of (higher z-Index) as a composable that has a different parent? e.g.
Box {
  Box { 
    Composable1() <-- render this "on top of" (higher zIndex) Composable2
  }
  Composable2()
}
a
o
s
  • 3
  • 4
  • 1143
How do I map a `StateFlow` to another `StateFlow`? `stateFlow.map { } as StateFlow&lt;T&gt;` throws ...
o

Orhan Tozan

over 5 years ago
How do I map a
StateFlow
to another
StateFlow
?
stateFlow.map { } as StateFlow<T>
throws a ClassCastException
o
r
  • 2
  • 8
  • 1142
what can I do if the `compileKotlin` Gradle task always hangs for 10+ minutes, and launches a Java p...
a

Adam S

over 2 years ago
what can I do if the
compileKotlin
Gradle task always hangs for 10+ minutes, and launches a Java process that takes up 100% CPU? This is for a small v1.8.10 project with ~10 Kotlin classes (Gradle 8.0.2) I’ve tried cleaning, rebooting, running with
--no-build-cache
,
--no-configuration-cache
,
kotlin.incremental=false
, `kotlin.caching.enabled=false`…
a
t
h
  • 3
  • 19
  • 1139
Hello, I am discovering the new `plugins` declaration. Applying below in the root Gradle file ```pl...
n

nuhkoca

over 3 years ago
Hello, I am discovering the new
plugins
declaration. Applying below in the root Gradle file
plugins {
    id("com.android.application") version "7.2" apply false
    id("com.android.library") version "7.2" apply false
}
But I also need to apply
Gradle
plugin in
buildSrc
so I have this in there
implementation("com.android.tools.build:gradle:7.2.0")
but then IDE throws an exception
Error resolving plugin [id: ‘com.android.application’, version: ‘7.2.0’, apply: false]
> The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.
How do I have the same plugin works for the both places?
n
v
a
  • 3
  • 8
  • 1138
Has anyone been able to successfully use FlowRow and alignment? Seems like it's not possible to vert...
c

Colton Idle

over 2 years ago
Has anyone been able to successfully use FlowRow and alignment? Seems like it's not possible to vertically center items in a flow row due to FlowRowScopeInstance being private.
c
r
f
  • 3
  • 18
  • 1136
Previous363738Next

kotlinlang

A modern programming language that makes developers happier.

Powered by