Hey! Since today my KMP/CMP project doesn’t build anymore🙈. Gets stuck for hours until I stop the build.
Same code worked fine till yesterday.
What I did already:
• completely delete local repo and clone it again
• Files -> Invalidate Caches
• remove
/user/.gradle/caches
and
/daemon
• Restart my machine
• Install new Android Studio
My other KMP projects build fine, just this one started working. Always same two modules get stuck at
compileDebugKotlinAndroid
. No errors, just gets stuck. For hours. Am I missing something? What else could I try?
s
Spoudel347
04/27/2024, 1:25 PM
Did you did all of the above without restarting your computer?
m
Max
04/27/2024, 1:39 PM
@Spoudel347 I restarted my machine in the beginning a few times, not after I performed the other steps.
🎉🎉🎉 I could fix it finally:
I ran the above mentioned tasks isolated (as I did already before), but this time with the
It took a minute but they ran through and afterwards normal builds work.
.. great way to spend half a Saturday😬
😮💨 1
j
Joel Denke
04/27/2024, 3:08 PM
If its iOS only, I often get this randomly. I usually build from another IDE + delete entire build folder and if not help delete .Gradle folder. I think its config or build cache get stuck in some cases.
Also check IDE version combo with Gradle, AGP etc. Some of them like Android Studio sometimes freeze indexing. I understand the frustration.
p
Pablichjenkov
04/27/2024, 6:20 PM
It happens to me if the Mac goes to sleep in the middle of an