Hey! Since today my KMP/CMP project doesn’t build ...
# multiplatform
m
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
Did you did all of the above without restarting your computer?
m
@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
--debug
flag.
./gradlew :resources:compileDebugKotlinAndroid --debug
It took a minute but they ran through and afterwards normal builds work. .. great way to spend half a Saturday😬
😮‍💨 1
j
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
It happens to me if the Mac goes to sleep in the middle of an
assemble
command running. Not sure where to report it.