Hey! The wizard seems to be broken at the moment. ...
# compose
c
Hey! The wizard seems to be broken at the moment.
Copy code
$ ./gradlew run 

[…]

org.gradle.api.GradleException: Invalid Timestamp -2785708036854 for 'file '/tmp/KotlinProject/KotlinProject/composeApp/src/commonMain/composeResources/drawable''.
	at org.gradle.api.internal.file.AbstractFileTreeElement.validateTimeStamps(AbstractFileTreeElement.java:96)
	at org.gradle.api.internal.file.AbstractFileTreeElement.copyTo(AbstractFileTreeElement.java:78)
https://kmp.jetbrains.com/
Worked around by running
touch /tmp/KotlinProject/KotlinProject/composeApp/src/commonMain/composeResources/drawable
, because apparently Gradle is extremely confused if the file was never modified.
Of course, now it fails with
Copy code
Exception in thread "main" java.lang.NoClassDefFoundError: androidx/collection/MutableScatterSet
	at androidx.compose.runtime.Recomposer.<init>(Recomposer.kt:217)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: androidx.collection.MutableScatterSet
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:528)
Uh, but running it through IDEA does work.
Great.
t
I get this exact error when trying to run a new alternate Main.kt I just created, even though running the original Main.kt still works fine, and the new one isn't doing anything special yet, even if the window is empty
whatever causes it, doing a clean isn't enough to make things work again, it really just feels like something somewhere is missing the dependency, but somehow my normal Main is completely dodging the need for it