Starting Kotlin 1.5.0, using the following fun int...
# android
n
Starting Kotlin 1.5.0, using the following fun interface:
Copy code
internal fun interface Action<T: Any> {
    val id: String get() = hashCode().toString()
    fun execute(): Result<T>
}
fails on Android with:
com.android.tools.r8.errors.b: Method name '<get-id>' in class '...$reload$1$1$2' cannot be represented in dex format.
Does anyone know if this is a Kotlin or R8 issue?
e
Kotlin is using a non-Java-compatible name, which is normally fine since JVM allows it, but Dalvik doesn't. probably a Kotlin issue. not a d8 issue: https://issuetracker.google.com/issues/65010138
could be a feature request for l8, maybe, and if you were running r8 maybe you'd get away with it
n
It works with 1.4.31 though. Not sure what l8 is?
e
d8 dexer, l8 desugar, r8 minimizer. same codebase, different parts of the app building pipeline
👍 1