Yeah, it definetely feels like kmm + gradle is not a good match. Everytime I try to configure something build-related, it ends up leading into dozens of open tabs, google searches, swears and lost hopes 🙂 And this is after 9+ years of working with Android and gradle. I do hope that somehow I'll aquire more kmm+kts+gradle-fu, but I wish this was more friendly and welcoming ecosystem.
P.S. And I didn't even try building my KMM project on iOS, I suspect this will be another "fun" ride :)