https://kotlinlang.org
Join Slack
i keep getting "The 'java' plugin has been applied, but it is not compatible with the Android plugin...
y

Yousef

over 3 years ago
i keep getting "The 'java' plugin has been applied, but it is not compatible with the Android plugins."
y
e
+2
  • 4
  • 15
  • 1367
Hi everyone, I’m dealing with an issue when trying to spy my class contains a value class inside the...
l

Long Tran

about 2 years ago
Hi everyone, I’m dealing with an issue when trying to spy my class contains a value class inside the constructor with
spyk
which provided by
Mockk
The code as below:
@JvmInline
value class MyValueClass(Val value: String = “”) : Serializable

class A(
   Val valueClass: MyValueClass = MyValueClass()
)

// In unit test file
@Test
fun test() {
    Val mockClass = spyk<A>()
    …
}
And this error happened
io.mockk.MockKException: Can't instantiate proxy via default constructor for class A
Appreciate with your help 🙏
l
p
  • 2
  • 7
  • 1359
Is there a way to check device’s network connection in common code or we have to write platform spec...
p

ptsiogas

almost 5 years ago
Is there a way to check device’s network connection in common code or we have to write platform specific code? Are there any working examples?
p
a
+2
  • 4
  • 11
  • 1347
When using createEmptyComposeRule and launching the activity myself, is there a way to still perform...
l

Landry Norris

about 3 years ago
When using createEmptyComposeRule and launching the activity myself, is there a way to still perform actions and make assertions using the EmptyComposeRule? The activity needs to take in data using Intents, but is otherwise fully Compose. After I create an empty compose rule, then launch the activity using ActivityScenario.launch<MyActivity>(intent), I get an error when I try to make an assertion on the rule.
l
z
  • 2
  • 3
  • 1346
Is it expected that `WindowInsets.isImeVisible` returns false when the keyboard is showing if the so...
e

eygraber

over 2 years ago
Is it expected that
WindowInsets.isImeVisible
returns false when the keyboard is showing if the softInputMode is set to pan?
e
a
+2
  • 4
  • 44
  • 1344
Hi. Is there a way to remove underline of the text (when writing) in BasicTextField? I tried this, b...
r

Roman Polach

about 4 years ago
Hi. Is there a way to remove underline of the text (when writing) in BasicTextField? I tried this, but underline is still there:
BasicTextField(
                    singleLine = true,
                    value = text,
                    textStyle = LocalTextStyle.current.copy(textDecoration = TextDecoration.None),
                    readOnly = readOnly,
                    onValueChange = {
                        onValueChanged(it)
                    }
                )
r
c
+2
  • 4
  • 13
  • 1344
How to add Jacoco plugin to TOML version catalog file Instead of `id("jacoco")` in the plugins sect...
h

Humphrey

over 2 years ago
How to add Jacoco plugin to TOML version catalog file Instead of
id("jacoco")
in the plugins section of build.gradle I would like to use
alias(libs.plugins.jacoco)
h
e
+2
  • 4
  • 26
  • 1344
HorizontalPager continues the fling from horizontal LazyRow. This is apparently Expected behavior bu...
m

Michal Klimczak

over 4 years ago
HorizontalPager continues the fling from horizontal LazyRow. This is apparently Expected behavior but it differs from traditional android views and also feels really bad. Anyone knows how to work around it? Relevant github issue: https://github.com/google/accompanist/issues/347#event-4607690257
m
c
+4
  • 6
  • 28
  • 1337
Is there a way to prevent Focus on a TextField? `Modifier.focusable(false)` isn't doing what I expec...
c

Chris Johnson

about 3 years ago
Is there a way to prevent Focus on a TextField?
Modifier.focusable(false)
isn't doing what I expect it to do. My use case is I want to have a TextField that looks editable, but when clicked on is not focused and instead goes to a different screen. Ideally I'd like to use
enabled = false
but that changes the colors in an undesirable way. Currently, it still focuses the text in the TextField before navigating away
c
k
+3
  • 5
  • 11
  • 1336
Can you explain what this means? &gt; Project accessors enabled, but root project name not explicitl...
n

Norbi

about 2 years ago
Can you explain what this means?
Project accessors enabled, but root project name not explicitly set for 'buildSrc'. Checking out the project in different folders will impact the generated code and implicitly the buildscript classpath, breaking caching.
I have a
buildSrc
project in my multi-project build but
rootProject.name
is set to the "real" root project, not
buildSrc
...
n
e
  • 2
  • 3
  • 1332
Previous232425Next

kotlinlang

A modern programming language that makes developers happier.

Powered by