Has anyone dealt with an issue like this before? `...
# android
Has anyone dealt with an issue like this before?
Copy code
* What went wrong:
Execution failed for task ':presentation:minifyBrandProductionReleaseWithR8'.
> Could not resolve all files for configuration ':presentation:brandProductionReleaseRuntimeClasspath'.
   > 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=brandProductionRelease, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
      > Execution failed for AsmClassesTransform: /root/.gradle/caches/transforms-3/0442ceba8861991962529ab9a6c53c81/transformed/jetified-ktor-client-core-jvm-1.6.2.jar.
         > Index -1 out of bounds for length 0
Slack Conversation
Dealt with an issue that looks similar but not quite like this. Have been wondering what that ASM step actually does…
The solution with the issue was just deleting that file during the build, like so:
Copy code
tasks.whenTaskAdded { task ->
  if (task.name.contains("yourTaskName")) {
    task.doLast {
      new File(System.getProperty("user.dir") + "path/to/file").deleteDir()
The task that you would substitute for
would probably be the name of the task that executes before the one that is returning the error. As I mentioned, your issue merely looks similar, so I figured this would perhaps solve it, although I cannot tell you why it fails and also not what ASM exactly does nor why this fixes it. Good luck!
Thanks @Ronald Wolvers 🙏 Not sure if this helps as there are some third party dependency on
but will give it a go
😃 1