I'm having some Gradle build problems while workin...
# multiplatform
m
I'm having some Gradle build problems while working on a simple Kotlin Multiplatform POC. G I used the Kotlin Multiplatform Wizard and was able to get that running on Android, Desktop, and Web. I then went to add some basic functionality but I'm now stuck with this build error... 🧵
Copy code
Unable to load class 'Class 'KotlinCoroutineJvmDebugArgumentsProvider' not found in class loader 'VisitableURLClassLoader(ClassLoaderScopeIdentifier.Id{coreAndPlugins:init-file:/C:/Users/mkess/AppData/Local/Temp/ijKotlinCoroutineJvmDebugInit1.gradle:groovy-dsl:C:\Users\mkess\AppData\Local\Temp\ijKotlinCoroutineJvmDebugInit1.gradle:InitScript(local)})' of type 'org.gradle.internal.classloader.VisitableURLClassLoader'.'
Class 'KotlinCoroutineJvmDebugArgumentsProvider' not found in class loader 'VisitableURLClassLoader(ClassLoaderScopeIdentifier.Id{coreAndPlugins:init-file:/C:/Users/mkess/AppData/Local/Temp/ijKotlinCoroutineJvmDebugInit1.gradle:groovy-dsl:C:\Users\mkess\AppData\Local\Temp\ijKotlinCoroutineJvmDebugInit1.gradle:InitScript(local)})' of type 'org.gradle.internal.classloader.VisitableURLClassLoader'.

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Things that I've tried... 1. Restart IntelliJ IDEA. 2. The line above starting with
Re-download dependencies...
was a clickable link that seemed to successfully restart all Gradle daemons. 3. The line above starting with
Stop Gradle...
was also a clickable link that seemed to successfully stop all builds and restart the IDE. 4. Google suggests ./gradlew clean which was successful.
Unfortunately, none of the above get past the above error. The weird part is that the other builds succeed... • Android builds and runs the new functionality that I added. • Web builds but does not run the new functionality that I added.
🙌 1
The only other thing that I read to try but have not yet had time is to restart Java.
Anyone here have experience with this?
a
Have you tried enabling 'Attach coroutine agent'? https://youtrack.jetbrains.com/issue/KTIJ-34549
m
I have not. I’ll give this a try. thank you color
image.png
Unfortunately, it looks like I already had this option selected.
I'll comment on that ticket though. It definitely seems in the realm of the problem that I have.
@Gavriil Maksyutenko do you have any idea here?