https://kotlinlang.org logo
#ktor
Title
# ktor
s

Sebastian Owodzin

08/31/2021, 1:53 PM
Has anyone ever seen something like this when building release variant of the Android app that uses KTOR client through multiplatform module?
Copy code
Execution failed for task ':app-android:mobile:minifyReleaseWithR8'.
> Could not resolve all files for configuration ':app-android:mobile:releaseRuntimeClasspath'.
   > Failed to transform ktor-client-core-jvm-1.6.2.jar (io.ktor:ktor-client-core-jvm:1.6.2) to match attributes {artifactType=android-asm-instrumented-jars, asm-transformed-variant=release, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
      > Execution failed for AsmClassesTransform: /Users/sowodzin/.gradle/caches/transforms-3/f7fb63019a1553b70833efe63d6a881f/transformed/jetified-ktor-client-core-jvm-1.6.2.jar.
         > Index -1 out of bounds for length 0
Koltin version: 1.5.21 Android Gradle Plugin 7.0.1 (everything is fine when I switch back to 4.1.3)
a

Aleksei Tirman [JB]

09/01/2021, 8:43 AM
Most likely this is KTOR-2847.
s

Sebastian Owodzin

09/01/2021, 9:36 AM
yup, found this after posting here
and definitely disabling firebase-perf fixes the problem
2 Views