https://kotlinlang.org
Join Slack
How do I get one module's test configuration to depend on another's test configuration in gradle kot...
d

dave08

over 4 years ago
How do I get one module's test configuration to depend on another's test configuration in gradle kotlin dsl?
d
b
+2
  • 4
  • 32
  • 721
Slider accessibility I cannot find a way to define what TalkBack reads when the Slider value is chan...
c

Csaba Szugyiczki

almost 3 years ago
Slider accessibility I cannot find a way to define what TalkBack reads when the Slider value is changed. In my example my slider can have 3 values 0, 1, 2 which then mapped to Walking Speed values: Slow, Medium and Fast respectively. TalkBack reading the percent values of the thumb is not very helpful in this case. Is it possible to override the value read on Slider value change without ruining the functionality of the Slider? (being able to change the value by swiping up or down and by double tap-and-hold then sliding left and right is the basic way a Slider can be used with TalkBack, I do not want to loose this)
👀 1
c
b
c
  • 3
  • 24
  • 720
How to convert byte array to ImageBitmap in Compose for Desktop? I am using Image.makeFromEncoded(th...
j

Javokhir Savriev

over 2 years ago
How to convert byte array to ImageBitmap in Compose for Desktop? I am using Image.makeFromEncoded(this).toComposeImageBitmap(), but i get error Failed to Image:makeFromEncoded
j
m
t
  • 3
  • 2
  • 719
any suggestions for plugins to detect unused dependencies in a kotlin DSL android project? I have se...
w

William Reed

over 4 years ago
any suggestions for plugins to detect unused dependencies in a kotlin DSL android project? I have seen https://github.com/Faire/gradle-kotlin-buildozer but I get an error about needing java 16
Incompatible because this component declares an API of a component compatible with Java 16 and the consumer needed a runtime of a component compatible with Java 11
any other suggestions to try?
w
m
v
  • 3
  • 15
  • 719
Edit: Solved After updating to Kotlin 1.9.20 I get the following error: ```Plugin [id: 'org.jetbra...
e

eygraber

almost 2 years ago
Edit: Solved After updating to Kotlin 1.9.20 I get the following error:
Plugin [id: 'org.jetbrains.kotlin.kapt'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this source)
It was working fine before like this:
plugins {
  kotlin("kapt")
}
It seems to work if I manually add the version:
plugins {
  kotlin("kapt") version "1.9.20"
}
e
t
  • 2
  • 2
  • 716
Hello, is there a "on hover" property in Compose Desktop ? I'd like to detect the mouse over an elem...
d

David Dupraz

over 4 years ago
Hello, is there a "on hover" property in Compose Desktop ? I'd like to detect the mouse over an element, not the click
d
t
c
  • 3
  • 3
  • 716
Anyone working on a game engine with Compose?
x

xxfast

almost 3 years ago
Anyone working on a game engine with Compose?
x
r
+6
  • 8
  • 27
  • 715
how to get the file size from uri
s

san

almost 5 years ago
how to get the file size from uri
stackoverflow 5
s
r
s
  • 3
  • 6
  • 714
Hi there, I'm struggling a lot with ktlint when trying to format my code. If I run an Android Studio...
x

Xabier Gorostidi

about 5 years ago
Hi there, I'm struggling a lot with ktlint when trying to format my code. If I run an Android Studio code reformat of a long if statement, it formats the if as Kotlin Official Code Style, however ktlint complains about an unexpected indentation:
if (records.containsKey(AdvRecord.TYPE_UUID128) && Arrays.equals(
        Config.MYOWN_GATT_SERVICE_RAW,  // <-- Unexpected indentation (expected 12, actual 16)
        AdvRecord.getServiceUUID128(records[AdvRecord.TYPE_UUID128]!!) // <-- Same as above
    ) // <-- Unexpected indentation (expected 8, actual 12)
) {
    ...
}
However, if I change manually to the expected result,
ktlintFormat
complains about the same lines to be changed into the previous code indentation again. I don't understand anything. What I'm trying to achieve is Android Studio IDE code reformat fits with ktlint criteria, and somehow they're unsynced now. I'm using the latest gradle plugin:
id "org.jlleitschuh.gradle.ktlint" version "9.4.1"
I have even tried to run
ktlint --android applyToIDEAProject
to apply project specific code style, but the problem persist. Any idea how to solve this guys?
x
t
r
  • 3
  • 3
  • 714
Good evening! What can I do when I get this error? The error: ```Build file '/home/paulstern/docs/de...
p

Paul Stern

about 1 year ago
Good evening! What can I do when I get this error? The error:
Build file '/home/paulstern/docs/dev/kmp-adreg/composeApp/build.gradle.kts' line: 5

Error resolving plugin [id: 'org.jetbrains.kotlin.android', version: '2.0.0']
> 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.
Just in case you need it: https://github.com/Paul-Stern/kmp-adreg/tree/draft
p
d
  • 2
  • 2
  • 712
Previous798081Next

kotlinlang

A modern programming language that makes developers happier.

Powered by