The used version for R8 is 8.9.35 which supports Kotlin up to 2.1:
|
"com.android.tools:r8:8.9.35", |
Compat table between R8 and Kotlin is here: https://developer.android.com/build/kotlin-support
Depending on libraries compiled with Kotlin > 2.1 leads to:
Warning: An error occurred when parsing kotlin metadata. This normally happens when using a newer version of kotlin than the kotlin version released when this version of R8 was created. To find compatible kotlin versions, please see: https://developer.android.com/studio/build/kotlin-d8-r8-versions
Info: Class com.flyfishxu.kadb.exception.AdbStreamClosed has malformed kotlin.Metadata: java.lang.IllegalArgumentException: Provided Metadata instance has version 2.3.0, while maximum supported version is 2.1.0. To support newer versions, update the kotlin-metadata-jvm library.
and errors follow.
Can we bump it in the near time to support newer versions?
Currently stuck with building beacuse of this. Is there a way to disable R8 for a specific library or use a newer R8 version without patching toolchains?
The used version for
R8is8.9.35which supports Kotlin up to2.1:rules_android/defs.bzl
Line 85 in 6fdd21a
Compat table between R8 and Kotlin is here: https://developer.android.com/build/kotlin-support
Depending on libraries compiled with Kotlin >
2.1leads to:and errors follow.
Can we bump it in the near time to support newer versions?
Currently stuck with building beacuse of this. Is there a way to disable R8 for a specific library or use a newer R8 version without patching toolchains?