https://kotlinlang.org
Join Slack
is there a way to get more verbose errors out of the kotlin compiler? When i use `gradlew classes`,...
v

Victor Ng

about 2 years ago
is there a way to get more verbose errors out of the kotlin compiler? When i use
gradlew classes
, I frequently get nothing useful from the compiler>
❯ ./gradlew classes

> Task :kaptGenerateStubsKotlin FAILED
e: Could not load module <Error module>

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':kaptGenerateStubsKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to <https://docs.gradle.org/8.2.1/userguide/command_line_interface.html#sec:command_line_warnings> in the Gradle documentation.

BUILD FAILED in 874ms
3 actionable tasks: 1 executed, 2 up-to-date
not kotlin but kotlin colored 0
v
h
r
  • 3
  • 3
  • 1128
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
  • 1128
Is there any uniform approach for scanning QR-codes on multiplatform? I need iOS/Android/Desktop JVM
j

jQrgen

almost 2 years ago
Is there any uniform approach for scanning QR-codes on multiplatform? I need iOS/Android/Desktop JVM
j
a
+3
  • 5
  • 9
  • 1126
What could cause this exception? (thread)
j

Jan

about 3 years ago
What could cause this exception? (thread)
j
n
  • 2
  • 6
  • 1125
Running in to issue with combination it seems of Jetpack Compose 1.7.0-beta and CMP 1.6.10. I'm usi...
j

John O'Reilly

over 1 year ago
Running in to issue with combination it seems of Jetpack Compose 1.7.0-beta and CMP 1.6.10. I'm using
HorizontalPager
in shared compose code and am getting
java.lang.NoSuchMethodError: No static method HorizontalPager...
crash. I have to use that 1.7 bera due in turn to dependency on lifecycle 2.8.. I also tried 1.6.20-dev1663 but still get same issue
j
a
+2
  • 4
  • 6
  • 1123
Hi, how to update composable when a list changes by `rember { mutableStateOf(mutableListOf&lt;Int&gt...
l

Lance Gao

over 3 years ago
Hi, how to update composable when a list changes by
rember { mutableStateOf(mutableListOf<Int>())}
?
l
m
c
  • 3
  • 9
  • 1123
How do you use multiple xcframeworks exposing the same types from a dependency and map this type? I ...
h

hfhbd

almost 3 years ago
How do you use multiple xcframeworks exposing the same types from a dependency and map this type? I want to create a release xcframework used by the ios app and a test xcframework used by the ios tests. Of course the types in the test xcframework should map to the types used by the release xcframework, but at the moment I get different warnings or different error messages depending on the current workarounds I tried.
h
a
+3
  • 5
  • 16
  • 1121
Just curious, in compose-desktop do we have a local database like `room` ? I think other desktop app...
v

Vivek Sharma

almost 4 years ago
Just curious, in compose-desktop do we have a local database like
room
? I think other desktop app uses remote db for their apps, no?
v
a
+7
  • 9
  • 32
  • 1117
how can I use `value class` in a multiplatform project? Previously I used `inline class` but I see i...
p

Piotr Krzemiński

almost 3 years ago
how can I use
value class
in a multiplatform project? Previously I used
inline class
but I see it’s deprecated now. Using
value class
produces an error “Value classes without @JvmInline annotation are not supported yet” and I cannot use
@JvmInline
in a multiplatform project obviously. What’s the recommended path forward? Keep using
inline class
? What’s the plan of proper multiplatform support for
value class
? Once we clarify all of it, I’ll propose some changes to the docs: https://kotlinlang.org/docs/inline-classes.html
✅ 1
p
h
+2
  • 4
  • 9
  • 1116
Implemented video player using compose multiplatform for ios, android, and desktop. code can be foun...
k

Kashismails

over 2 years ago
Implemented video player using compose multiplatform for ios, android, and desktop. code can be found here :https://github.com/Kashif-E/Compose-Multiplatform-Video-Player
Screen Recording 2023-07-22 at 2.27.32 AM.mov
👍🏻 1
🦜 1
👍 10
k
n
+2
  • 4
  • 8
  • 1115
Previous353637Next

kotlinlang

A modern programming language that makes developers happier.

Powered by