https://kotlinlang.org
Join Slack
Hey guys! I'm having issues related to javadoc task while trying to publish my library. Seems relate...
r

Rafael Costa

over 2 years ago
Hey guys! I'm having issues related to javadoc task while trying to publish my library. Seems related with jdk and sealed classes / interfaces, but I'm really not sure how to tackle it. I'm using JDK 17, AGP 8.0.2 and Gradle 8.1. Sorry if this is not the best place to ask 😅 Here's the error I'm getting:
> Task :moduleX:javaDocReleaseGeneration
Initializing plugins
Dokka is performing: documentation for :moduleX
Validity check
Creating documentation models

WARN: Could not read file: /some/path/build/intermediates/compile_library_classes_jar/release/classes.jar!/some/path/SomeSealedClass.class; size in bytes: 1011; file type: CLASS
java.lang.UnsupportedOperationException: PermittedSubclasses requires ASM9
r
i
  • 2
  • 7
  • 352
hey all - I'm interseted in using KotlinPoet to generate some code around some Android libraries. Th...
m

Matthew Laser

about 4 years ago
hey all - I'm interseted in using KotlinPoet to generate some code around some Android libraries. The kotlinpoet itself seems really straightforward and easy to understand, but the docs on the site don't really seem to cover actually how to insert KotlinPoet into a build lifecycle. I found a stackoverflow question regarding custom gradle tasks, but I thought I'd ask if anyone here is aware of best practices/approaches when it comes to generating your own code.
m
e
  • 2
  • 22
  • 352
Is there a way to parameterize precompiled script plugins? Can I somehow define configuration option...
n

Norbi

over 2 years ago
Is there a way to parameterize precompiled script plugins? Can I somehow define configuration options in them?
n
s
+2
  • 4
  • 25
  • 351
I am trying to setup android target for multiplatform project (androidMain) and get the following er...
o

oshai

almost 3 years ago
I am trying to setup android target for multiplatform project (androidMain) and get the following error:
Could not generate a decorated class for type KotlinAndroidTarget
Is there any guide how to add such sourceSet?
o
p
s
  • 3
  • 7
  • 351
Well apparently i suck at okio. whats the proper way to create a directory + file? ```@Throws(IOExce...
c

Colton Idle

almost 3 years ago
Well apparently i suck at okio. whats the proper way to create a directory + file?
@Throws(IOException::class)
fun writeStringToFile(path: Path, myMessage: String) {
  FileSystem.SYSTEM.createDirectories(path)

  FileSystem.SYSTEM.write(path) {
      writeUtf8(myMessage)
  }
}
Calling code
writeStringToFile("mydir/myMessage.json".toPath(), "hello, moto")
Keep getting
java.io.IOException: failed to create directory: mydir
edit: maybe cuz im on an emu 🤔
c
e
+2
  • 4
  • 15
  • 351
Hello guys, i am calling suspend function on ios, and is getting the following error, `*Calling Kotl...
b

brabo-hi

over 3 years ago
Hello guys, i am calling suspend function on ios, and is getting the following error,
*Calling Kotlin suspend functions from Swift/Objective-C is currently supported only on main thread*
any clue
b
h
  • 2
  • 2
  • 351
`Slider` doesn’t follow the `steps` and lets me drag it all over. Is this a known bug? Is the main i...
g

galex

over 5 years ago
Slider
doesn’t follow the
steps
and lets me drag it all over. Is this a known bug? Is the main issue tracker the right place to report issues on material design compose lib?
g
m
  • 2
  • 9
  • 351
Is there a Kotlin way of locale-specific sorting? ```fun sort(list: List<String>): List<Str...
e

eekboom

almost 6 years ago
Is there a Kotlin way of locale-specific sorting?
fun sort(list: List<String>): List<String> {
    val collator = Collator.getInstance(Locale.GERMAN)
    collator.strength = Collator.PRIMARY
    return list.sortedWith(Comparator {a, b -> collator.compare(a, b)})
}
e
i
b
  • 3
  • 3
  • 351
What’s the recommended max_line_length for Kotlin projects (SpringBoot + Arrow as more context)?
k

Kev

over 1 year ago
What’s the recommended max_line_length for Kotlin projects (SpringBoot + Arrow as more context)?
k
p
  • 2
  • 2
  • 350
Hello! I started to use Voyager for navigation. As I am still migrating an Android app to Multiplatf...
e

Enol Simón

over 1 year ago
Hello! I started to use Voyager for navigation. As I am still migrating an Android app to Multiplatform, I still need to pass some functions as argument from the activity to the Composable function. It makes Voyager to crash when I navigate to another activity, or I open a link via Intent with the error
java.lang.RuntimeException: Parcelable encountered IOException writing serializable object
. I have read that it is a problem because of this . Anybody has a solution or knows how I can pass certain arguments without getting this error?
e
a
v
  • 3
  • 9
  • 350
Previous196197198Next

kotlinlang

A modern programming language that makes developers happier.

Powered by