Amir Rudd
08/13/2021, 5:10 AM* 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 ConversationRonald Wolvers
08/13/2021, 1:24 PMRonald Wolvers
08/13/2021, 1:29 PMtasks.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 yourTaskName
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!Amir Rudd
08/16/2021, 1:29 AMktor
but will give it a go